From 2aaa62060686f1bd6589224dacac1964aee6e0b9 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 23 Mar 2016 20:06:49 +0300 Subject: [PATCH] Factories refactoring (moved to separate directory). --- .../Bundle/PointToolsBundle/Resources/config/services.yml | 6 +++--- .../Service/Factory/{ => Blogs}/CommentFactory.php | 3 ++- .../Service/Factory/{ => Blogs}/PostFactory.php | 3 ++- .../Service/Factory/{ => Blogs}/TagFactory.php | 2 +- src/Skobkin/Bundle/PointToolsBundle/Service/PostApi.php | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) rename src/Skobkin/Bundle/PointToolsBundle/Service/Factory/{ => Blogs}/CommentFactory.php (96%) rename src/Skobkin/Bundle/PointToolsBundle/Service/Factory/{ => Blogs}/PostFactory.php (96%) rename src/Skobkin/Bundle/PointToolsBundle/Service/Factory/{ => Blogs}/TagFactory.php (97%) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/config/services.yml b/src/Skobkin/Bundle/PointToolsBundle/Resources/config/services.yml index 1ea58a6..931fb16 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/config/services.yml +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/config/services.yml @@ -30,13 +30,13 @@ services: arguments: [ @doctrine.orm.entity_manager ] skobkin__point_tools.service_factory.comment_factory: - class: Skobkin\Bundle\PointToolsBundle\Service\Factory\CommentFactory + class: Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs\CommentFactory arguments: [ @doctrine.orm.entity_manager, @skobkin__point_tools.service_factory.user_factory ] skobkin__point_tools.service_factory.tag_factory: - class: Skobkin\Bundle\PointToolsBundle\Service\Factory\TagFactory + class: Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs\TagFactory arguments: [ @doctrine.orm.entity_manager ] skobkin__point_tools.service_factory.post_factory: - class: Skobkin\Bundle\PointToolsBundle\Service\Factory\PostFactory + class: Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs\PostFactory arguments: [ @doctrine.orm.entity_manager, @skobkin__point_tools.service_factory.user_factory, @skobkin__point_tools.service_factory.comment_factory, @skobkin__point_tools.service_factory.tag_factory ] diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/Factory/CommentFactory.php b/src/Skobkin/Bundle/PointToolsBundle/Service/Factory/Blogs/CommentFactory.php similarity index 96% rename from src/Skobkin/Bundle/PointToolsBundle/Service/Factory/CommentFactory.php rename to src/Skobkin/Bundle/PointToolsBundle/Service/Factory/Blogs/CommentFactory.php index be52247..b86b104 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/Factory/CommentFactory.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/Factory/Blogs/CommentFactory.php @@ -1,6 +1,6 @@