|
1234567891011121314151617181920212223242526 |
- <?php
-
- namespace Lc\CaracoleBundle\Repository\Site;
-
- use Lc\CaracoleBundle\Model\Section\SectionInterface;
- use Lc\CaracoleBundle\Repository\SectionStoreTrait;
- use Lc\SovBundle\Model\Site\PageInterface;
- use Lc\SovBundle\Repository\RepositoryQueryInterface;
- use Lc\SovBundle\Repository\Site\PageStore as SovPageStore;
-
- class PageStore extends SovPageStore
- {
- use SectionStoreTrait;
-
- public function __construct(PageRepositoryQuery $query)
- {
- parent::__construct($query);
- }
-
- public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- $query->filterBySection($this->section);
- return parent::filtersDefault($query);
- }
-
- }
|