@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @param $id |
|
45 | + * @param \Black\Page\Domain\Model\WebPageId $id |
|
46 | 46 | * |
47 | 47 | * @return WebPageDTO |
48 | 48 | */ |
@@ -14,7 +14,7 @@ |
||
14 | 14 | class ReadRepository extends EntityRepository implements WebPageReadRepository |
15 | 15 | { |
16 | 16 | /** |
17 | - * @param mixed $id |
|
17 | + * @param WebPageId $id |
|
18 | 18 | * @return mixed |
19 | 19 | * @throws \Doctrine\ORM\NoResultException |
20 | 20 | * @throws \Doctrine\ORM\NonUniqueResultException |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Black\Page\Infrastructure\Persistence; |
4 | 4 | |
5 | 5 | use Black\Bridge\Doctrine\Common\Persistence\MongoDB\MongoDBRepository; |
6 | -use Black\Bridge\Doctrine\Common\Persistence\ORMRepository; |
|
7 | 6 | use Black\Page\Domain\Model\WebPage; |
8 | 7 | use Black\Page\Domain\Model\WebPageId; |
9 | 8 | use Black\Page\Domain\Model\WebPageRepository; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | class ReadRepository extends EntityRepository implements WebPageReadRepository |
15 | 15 | { |
16 | 16 | /** |
17 | - * @param mixed $id |
|
17 | + * @param WebPageId $id |
|
18 | 18 | * @return mixed |
19 | 19 | * @throws \Doctrine\ORM\NoResultException |
20 | 20 | * @throws \Doctrine\ORM\NonUniqueResultException |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\EventDispatcher\Event; |
7 | 7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
8 | 8 | use Symfony\Component\HttpFoundation\Session\Session; |
9 | -use Symfony\Component\Translation\Translator; |
|
10 | 9 | use Symfony\Component\Translation\TranslatorInterface; |
11 | 10 | |
12 | 11 | /** |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param WebPageId $webPageId |
28 | - * @return mixed |
|
28 | + * @return \Black\Page\Domain\Model\WebPage |
|
29 | 29 | */ |
30 | 30 | public function read(WebPageId $webPageId) |
31 | 31 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | /** |
42 | 42 | * @param $slug |
43 | - * @return mixed |
|
43 | + * @return \Black\Page\Domain\Model\WebPage |
|
44 | 44 | */ |
45 | 45 | public function readBySlug($slug) |
46 | 46 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Black\Page\Domain\Model\WebPage; |
6 | 6 | use Black\Page\Domain\Model\WebPageId; |
7 | -use Black\Page\Domain\Model\WebPageWriteRepository; |
|
8 | 7 | use Black\Page\Infrastructure\Persistence\CQRS\WriteRepository; |
9 | 8 | use Cocur\Slugify\Slugify; |
10 | 9 |