@@ -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 |