@@ -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 | { |
@@ -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,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 |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sonata\NewsBundle\Entity; |
| 13 | 13 | |
| 14 | 14 | use Doctrine\ORM\EntityRepository; |
| 15 | - |
|
| 16 | 15 | use Sonata\NewsBundle\Model\PostInterface; |
| 17 | 16 | |
| 18 | 17 | class BasePostRepository extends EntityRepository |
@@ -14,10 +14,8 @@ |
||
| 14 | 14 | use Sonata\CoreBundle\Model\ManagerInterface; |
| 15 | 15 | use Sonata\NewsBundle\Model\CommentInterface; |
| 16 | 16 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 17 | - |
|
| 18 | 17 | use Sonata\NewsBundle\Model\CommentManagerInterface; |
| 19 | 18 | use Sonata\NewsBundle\Model\PostInterface; |
| 20 | - |
|
| 21 | 19 | use Sonata\DatagridBundle\Pager\Doctrine\Pager; |
| 22 | 20 | use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery; |
| 23 | 21 | |
@@ -10,14 +10,11 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | namespace Sonata\NewsBundle\Entity; |
| 12 | 12 | |
| 13 | -use Doctrine\ORM\NoResultException; |
|
| 14 | 13 | use Doctrine\ORM\Query\Expr\Join; |
| 15 | 14 | use Sonata\CoreBundle\Model\BaseEntityManager; |
| 16 | 15 | use Sonata\ClassificationBundle\Model\CollectionInterface; |
| 17 | - |
|
| 18 | 16 | use Sonata\DatagridBundle\Pager\Doctrine\Pager; |
| 19 | 17 | use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery; |
| 20 | - |
|
| 21 | 18 | use Sonata\NewsBundle\Model\BlogInterface; |
| 22 | 19 | use Sonata\NewsBundle\Model\PostInterface; |
| 23 | 20 | use Sonata\NewsBundle\Model\PostManagerInterface; |
@@ -14,10 +14,8 @@ |
||
| 14 | 14 | use Sonata\CoreBundle\Model\ManagerInterface; |
| 15 | 15 | use Sonata\NewsBundle\Model\CommentInterface; |
| 16 | 16 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 17 | - |
|
| 18 | 17 | use Sonata\NewsBundle\Model\CommentManagerInterface; |
| 19 | 18 | use Sonata\NewsBundle\Model\PostInterface; |
| 20 | - |
|
| 21 | 19 | use Sonata\DatagridBundle\Pager\Doctrine\Pager; |
| 22 | 20 | use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery; |
| 23 | 21 | |