@@ -3,16 +3,13 @@ |
||
3 | 3 | namespace Oro\Bundle\CommentBundle\Controller\Api\Rest; |
4 | 4 | |
5 | 5 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
6 | - |
|
7 | 6 | use FOS\RestBundle\Util\Codes; |
8 | 7 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
9 | 8 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
10 | 9 | use FOS\RestBundle\Controller\Annotations\QueryParam; |
11 | - |
|
12 | 10 | use Symfony\Component\Form\FormInterface; |
13 | 11 | use Symfony\Component\HttpFoundation\JsonResponse; |
14 | 12 | use Symfony\Component\HttpFoundation\Response; |
15 | - |
|
16 | 13 | use Oro\Bundle\SoapBundle\Form\Handler\ApiFormHandler; |
17 | 14 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
18 | 15 | use Oro\Bundle\SoapBundle\Request\Parameters\Filter\HttpDateTimeParameterFilter; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param int $entityId |
90 | 90 | * @param int $page |
91 | 91 | * @param int $limit |
92 | - * @param array $filters |
|
92 | + * @param Criteria $filters |
|
93 | 93 | * |
94 | 94 | * @return array |
95 | 95 | */ |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | } |
357 | 357 | |
358 | 358 | /** |
359 | - * @param $entity |
|
359 | + * @param Comment $entity |
|
360 | 360 | * |
361 | 361 | * @return File |
362 | 362 | */ |
@@ -8,10 +8,8 @@ |
||
8 | 8 | use Doctrine\Common\Util\ClassUtils; |
9 | 9 | use Doctrine\ORM\EntityNotFoundException; |
10 | 10 | use Doctrine\ORM\QueryBuilder; |
11 | - |
|
12 | 11 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
13 | 12 | use Symfony\Component\PropertyAccess\PropertyAccess; |
14 | - |
|
15 | 13 | use Oro\Bundle\AttachmentBundle\Manager\AttachmentManager; |
16 | 14 | use Oro\Bundle\CommentBundle\Entity\Comment; |
17 | 15 | use Oro\Bundle\CommentBundle\Entity\Repository\CommentRepository; |
@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace Oro\Bundle\CommentBundle\EventListener; |
4 | 4 | |
5 | 5 | use Symfony\Component\Security\Core\User\UserInterface; |
6 | - |
|
7 | 6 | use Doctrine\ORM\Event\LifecycleEventArgs; |
8 | 7 | use Doctrine\ORM\EntityManager; |
9 | 8 | use Doctrine\ORM\UnitOfWork; |
10 | - |
|
11 | 9 | use Oro\Bundle\EntityConfigBundle\DependencyInjection\Utils\ServiceLink; |
12 | 10 | use Oro\Bundle\CommentBundle\Entity\Comment; |
13 | 11 |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Form\FormInterface; |
6 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | - |
|
8 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
9 | - |
|
10 | 8 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
11 | 9 | use Oro\Bundle\CommentBundle\Entity\Comment; |
12 | 10 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Doctrine\DBAL\Schema\Schema; |
6 | 6 | use Doctrine\DBAL\DBALException; |
7 | 7 | use Doctrine\DBAL\Schema\SchemaException; |
8 | - |
|
9 | 8 | use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtension; |
10 | 9 | use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtensionAwareInterface; |
11 | 10 | use Oro\Bundle\EntityExtendBundle\Migration\OroOptions; |
@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | 6 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
7 | - |
|
8 | 7 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | 8 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
10 | - |
|
11 | 9 | use Oro\Bundle\UserBundle\Migrations\Data\ORM\LoadAdminUserData; |
12 | 10 | use Oro\Bundle\CommentBundle\Entity\Comment; |
13 | 11 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\UnitOfWork; |
6 | 6 | use Doctrine\ORM\Event\PreUpdateEventArgs; |
7 | - |
|
8 | 7 | use Oro\Bundle\CommentBundle\EventListener\CommentLifecycleListener; |
9 | 8 | use Oro\Bundle\SecurityBundle\SecurityFacade; |
10 | 9 | use Oro\Bundle\CommentBundle\Entity\Comment; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Cache\CacheProvider; |
6 | 6 | use Doctrine\Common\Persistence\ManagerRegistry; |
7 | - |
|
8 | 7 | use Oro\Bundle\ConfigBundle\Entity\Config; |
9 | 8 | |
10 | 9 | /** |
@@ -21,6 +21,9 @@ |
||
21 | 21 | $this->configProvider = $configProvider; |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $scope |
|
26 | + */ |
|
24 | 27 | public function addConfigManager($scope, $manager) |
25 | 28 | { |
26 | 29 | $this->configManagers[$scope] = $manager; |