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.
|
- <?php
-
- namespace Lc\SovBundle\Repository\Site;
-
- use Lc\SovBundle\Model\Site\PageInterface;
- use Lc\SovBundle\Repository\AbstractStore;
-
- class PageStore extends AbstractStore implements PageStoreInterface
- {
- protected PageRepositoryQueryInterface $query;
-
- public function __construct(PageRepositoryQueryInterface $query)
- {
- $this->query = $query;
- }
-
- //findPageBySlug
- public function getBySlug(string $slug): ?PageInterface
- {
- $query = $this->query->create();
-
- $query
- ->filterBySlug($slug);
-
- return $query->findOne();
- }
- }
|