Factories refactoring (moved to separate directory).

This commit is contained in:
Alexey Skobkin 2016-03-23 20:06:49 +03:00
parent 0f0700f87b
commit 2aaa620606
5 changed files with 9 additions and 7 deletions

View file

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

View file

@ -1,6 +1,6 @@
<?php
namespace Skobkin\Bundle\PointToolsBundle\Service\Factory;
namespace Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
@ -9,6 +9,7 @@ use Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Comment;
use Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Post;
use Skobkin\Bundle\PointToolsBundle\Service\Exceptions\ApiException;
use Skobkin\Bundle\PointToolsBundle\Service\Exceptions\InvalidResponseException;
use Skobkin\Bundle\PointToolsBundle\Service\Factory\UserFactory;
class CommentFactory

View file

@ -1,6 +1,6 @@
<?php
namespace Skobkin\Bundle\PointToolsBundle\Service\Factory;
namespace Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
@ -8,6 +8,7 @@ use Doctrine\ORM\EntityRepository;
use Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Post;
use Skobkin\Bundle\PointToolsBundle\Service\Exceptions\ApiException;
use Skobkin\Bundle\PointToolsBundle\Service\Exceptions\InvalidResponseException;
use Skobkin\Bundle\PointToolsBundle\Service\Factory\UserFactory;
class PostFactory

View file

@ -1,6 +1,6 @@
<?php
namespace Skobkin\Bundle\PointToolsBundle\Service\Factory;
namespace Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;

View file

@ -4,7 +4,7 @@ namespace Skobkin\Bundle\PointToolsBundle\Service;
use Guzzle\Service\Client;
use Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Post;
use Skobkin\Bundle\PointToolsBundle\Service\Factory\PostFactory;
use Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs\PostFactory;
/**
* Basic Point.im user API functions from /api/post