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.

PageStore.php 592B

3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Lc\SovBundle\Repository\Site;
  3. use Lc\SovBundle\Model\Site\PageInterface;
  4. use Lc\SovBundle\Repository\AbstractStore;
  5. class PageStore extends AbstractStore implements PageStoreInterface
  6. {
  7. protected PageRepositoryQueryInterface $query;
  8. public function __construct(PageRepositoryQueryInterface $query)
  9. {
  10. $this->query = $query;
  11. }
  12. //findPageBySlug
  13. public function getBySlug(string $slug): ?PageInterface
  14. {
  15. $query = $this->query->create();
  16. $query
  17. ->filterBySlug($slug);
  18. return $query->findOne();
  19. }
  20. }