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.

31 line
805B

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