Factories refactoring (moved to separate directory).
This commit is contained in:
parent
0f0700f87b
commit
2aaa620606
|
@ -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 ]
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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;
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue