|
5 | 5 | namespace Light\Blog; |
6 | 6 |
|
7 | 7 | use Doctrine\ORM\Mapping\Driver\AttributeDriver; |
8 | | -use Light\App\Factory\Articles\ArticleHandlerFactory; |
9 | | -use Light\App\Factory\Articles\ArticleRepositoryFactory; |
10 | | -use Light\App\Factory\Categories\CategoryHandlerFactory; |
11 | | -use Light\App\Factory\Categories\CategoryRepositoryFactory; |
12 | | -use Light\App\Factory\Posts\PostHandlerFactory; |
13 | | -use Light\Blog\Handler\GetArticlesHandler; |
14 | | -use Light\Blog\Handler\GetCategoriesHandler; |
15 | | -use Light\Blog\Handler\GetPostHandler; |
| 8 | +use Light\Blog\Factory\Articles\ArticleCollectionHandlerFactory; |
| 9 | +use Light\Blog\Factory\Articles\ArticleCollectionRepositoryFactory; |
| 10 | +use Light\Blog\Factory\Articles\ArticleResourceHandlerFactory; |
| 11 | +use Light\Blog\Factory\Categories\CategoryCollectionHandlerFactory; |
| 12 | +use Light\Blog\Factory\Categories\CategoryCollectionRepositoryFactory; |
| 13 | +use Light\Blog\Handler\GetArticleCollectionHandler; |
| 14 | +use Light\Blog\Handler\GetArticleResourceHandler; |
| 15 | +use Light\Blog\Handler\GetCategoryCollectionHandler; |
16 | 16 | use Light\Blog\Repository\ArticleRepository; |
17 | 17 | use Light\Blog\Repository\CategoryRepository; |
18 | 18 | use Mezzio\Application; |
@@ -49,11 +49,11 @@ private function getDependencies(): array |
49 | 49 | ], |
50 | 50 | ], |
51 | 51 | 'factories' => [ |
52 | | - GetCategoriesHandler::class => CategoryHandlerFactory::class, |
53 | | - CategoryRepository::class => CategoryRepositoryFactory::class, |
54 | | - GetArticlesHandler::class => ArticleHandlerFactory::class, |
55 | | - ArticleRepository::class => ArticleRepositoryFactory::class, |
56 | | - GetPostHandler::class => PostHandlerFactory::class, |
| 52 | + GetCategoryCollectionHandler::class => CategoryCollectionHandlerFactory::class, |
| 53 | + CategoryRepository::class => CategoryCollectionRepositoryFactory::class, |
| 54 | + GetArticleCollectionHandler::class => ArticleCollectionHandlerFactory::class, |
| 55 | + ArticleRepository::class => ArticleCollectionRepositoryFactory::class, |
| 56 | + GetArticleResourceHandler::class => ArticleResourceHandlerFactory::class, |
57 | 57 | ], |
58 | 58 | ]; |
59 | 59 | } |
|
0 commit comments