You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 line
699B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Site;
  3. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  4. use Lc\CaracoleBundle\Repository\SectionStoreTrait;
  5. use Lc\SovBundle\Model\Site\PageInterface;
  6. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  7. use Lc\SovBundle\Repository\Site\PageStore as SovPageStore;
  8. class PageStore extends SovPageStore
  9. {
  10. use SectionStoreTrait;
  11. public function __construct(PageRepositoryQuery $query)
  12. {
  13. parent::__construct($query);
  14. }
  15. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  16. {
  17. $query->filterBySection($this->section);
  18. return parent::filtersDefault($query);
  19. }
  20. }