@@ -17,15 +17,11 @@ |
||
17 | 17 | use Sonata\AdminBundle\Datagrid\DatagridMapper; |
18 | 18 | use Sonata\AdminBundle\Datagrid\ListMapper; |
19 | 19 | use Sonata\AdminBundle\Show\ShowMapper; |
20 | -use Sonata\FormatterBundle\Formatter\Pool as FormatterPool; |
|
21 | -use Sonata\CoreBundle\Model\ManagerInterface; |
|
22 | - |
|
23 | -use Knp\Menu\ItemInterface as MenuItemInterface; |
|
24 | 20 | use Sonata\FormatterBundle\Formatter\Pool; |
21 | +use Knp\Menu\ItemInterface as MenuItemInterface; |
|
25 | 22 | use Sonata\NewsBundle\Model\CommentInterface; |
26 | 23 | use Sonata\NewsBundle\Permalink\PermalinkInterface; |
27 | 24 | use Sonata\UserBundle\Model\UserManagerInterface; |
28 | -use Symfony\Component\Routing\RouterInterface; |
|
29 | 25 | |
30 | 26 | class PostAdmin extends Admin |
31 | 27 | { |
@@ -15,10 +15,8 @@ |
||
15 | 15 | use Sonata\CoreBundle\Model\ManagerInterface; |
16 | 16 | use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; |
17 | 17 | use Symfony\Component\HttpFoundation\Response; |
18 | - |
|
19 | 18 | use Sonata\AdminBundle\Form\FormMapper; |
20 | 19 | use Sonata\AdminBundle\Validator\ErrorElement; |
21 | - |
|
22 | 20 | use Sonata\BlockBundle\Model\BlockInterface; |
23 | 21 | use Sonata\BlockBundle\Block\BaseBlockService; |
24 | 22 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
@@ -15,10 +15,8 @@ |
||
15 | 15 | use Sonata\CoreBundle\Model\ManagerInterface; |
16 | 16 | use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; |
17 | 17 | use Symfony\Component\HttpFoundation\Response; |
18 | - |
|
19 | 18 | use Sonata\AdminBundle\Form\FormMapper; |
20 | 19 | use Sonata\AdminBundle\Validator\ErrorElement; |
21 | - |
|
22 | 20 | use Sonata\BlockBundle\Model\BlockInterface; |
23 | 21 | use Sonata\BlockBundle\Block\BaseBlockService; |
24 | 22 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
@@ -13,16 +13,9 @@ |
||
13 | 13 | |
14 | 14 | use FOS\RestBundle\Controller\Annotations\View; |
15 | 15 | use FOS\RestBundle\Controller\Annotations\Route; |
16 | - |
|
17 | -use JMS\Serializer\SerializationContext; |
|
18 | - |
|
19 | 16 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
20 | - |
|
21 | 17 | use Sonata\NewsBundle\Model\Comment; |
22 | 18 | use Sonata\NewsBundle\Model\CommentManagerInterface; |
23 | - |
|
24 | -use Symfony\Component\Form\FormFactoryInterface; |
|
25 | -use Symfony\Component\HttpFoundation\Request; |
|
26 | 19 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
27 | 20 | |
28 | 21 | /** |
@@ -15,19 +15,15 @@ |
||
15 | 15 | use FOS\RestBundle\Controller\Annotations\View; |
16 | 16 | use FOS\RestBundle\Controller\Annotations\Route; |
17 | 17 | use FOS\RestBundle\Request\ParamFetcherInterface; |
18 | - |
|
19 | 18 | use JMS\Serializer\SerializationContext; |
20 | 19 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
21 | - |
|
22 | 20 | use Application\Sonata\NewsBundle\Entity\Post; |
23 | - |
|
24 | 21 | use Sonata\DatagridBundle\Pager\PagerInterface; |
25 | 22 | use Sonata\FormatterBundle\Formatter\Pool as FormatterPool; |
26 | 23 | use Sonata\NewsBundle\Mailer\MailerInterface; |
27 | 24 | use Sonata\NewsBundle\Model\Comment; |
28 | 25 | use Sonata\NewsBundle\Model\CommentManagerInterface; |
29 | 26 | use Sonata\NewsBundle\Model\PostManagerInterface; |
30 | - |
|
31 | 27 | use Symfony\Component\Form\FormFactoryInterface; |
32 | 28 | use Symfony\Component\Form\FormInterface; |
33 | 29 | use Symfony\Component\HttpFoundation\Request; |
@@ -11,10 +11,8 @@ |
||
11 | 11 | namespace Sonata\NewsBundle\Controller; |
12 | 12 | |
13 | 13 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
14 | - |
|
15 | 14 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
16 | 15 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
17 | - |
|
18 | 16 | use Symfony\Component\Form\Form; |
19 | 17 | use Symfony\Component\HttpFoundation\RedirectResponse; |
20 | 18 | use Sonata\NewsBundle\Model\CommentInterface; |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Symfony\Component\Config\Definition\Processor; |
19 | 19 | use Symfony\Component\DependencyInjection\Definition; |
20 | 20 | use Symfony\Component\DependencyInjection\Reference; |
21 | - |
|
22 | 21 | use Sonata\EasyExtendsBundle\Mapper\DoctrineCollector; |
23 | 22 | |
24 | 23 | /** |
@@ -11,10 +11,7 @@ |
||
11 | 11 | namespace Sonata\NewsBundle\Document; |
12 | 12 | |
13 | 13 | use Sonata\CoreBundle\Model\BaseDocumentManager; |
14 | -use Sonata\NewsBundle\Model\CommentManager as ModelCommentManager; |
|
15 | 14 | use Sonata\NewsBundle\Model\CommentInterface; |
16 | -use Doctrine\ODM\MongoDB\DocumentManager; |
|
17 | - |
|
18 | 15 | use Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager; |
19 | 16 | use Sonata\DoctrineMongoDBAdminBundle\Datagrid\ProxyQuery; |
20 | 17 | use Sonata\NewsBundle\Model\CommentManagerInterface; |
@@ -10,12 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | namespace Sonata\NewsBundle\Document; |
12 | 12 | |
13 | -use Doctrine\DBAL\Connection; |
|
14 | 13 | use Sonata\CoreBundle\Model\BaseDocumentManager; |
15 | 14 | use Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager; |
16 | 15 | use Sonata\DoctrineMongoDBAdminBundle\Datagrid\ProxyQuery; |
17 | - |
|
18 | -use Doctrine\ODM\MongoDB\DocumentManager; |
|
19 | 16 | use Sonata\NewsBundle\Model\PostManagerInterface; |
20 | 17 | |
21 | 18 | class PostManager extends BaseDocumentManager implements PostManagerInterface |