@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Register new token parser |
45 | 45 | * |
46 | - * @return array |
|
46 | + * @return TitleSetTokenParser[] |
|
47 | 47 | */ |
48 | 48 | public function getTokenParsers() |
49 | 49 | { |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Renders title |
57 | 57 | * |
58 | - * @param null $titleData |
|
59 | - * @return string |
|
58 | + * @param string $titleData |
|
59 | + * @return TitleServiceInterface |
|
60 | 60 | */ |
61 | 61 | public function render($titleData = null) |
62 | 62 | { |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * Renders short title |
70 | 70 | * |
71 | - * @param null $titleData |
|
72 | - * @return string |
|
71 | + * @param string $titleData |
|
72 | + * @return TitleServiceInterface |
|
73 | 73 | */ |
74 | 74 | public function renderShort($titleData = null) |
75 | 75 | { |
@@ -4,21 +4,16 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Form\FormInterface; |
6 | 6 | use Symfony\Component\HttpFoundation\Response; |
7 | - |
|
8 | 7 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
9 | - |
|
10 | 8 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
11 | 9 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
12 | 10 | use FOS\RestBundle\Controller\Annotations\QueryParam; |
13 | 11 | use FOS\RestBundle\Routing\ClassResourceInterface; |
14 | - |
|
15 | 12 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
16 | 13 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
17 | - |
|
18 | 14 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
19 | 15 | use Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager; |
20 | 16 | use Oro\Bundle\SoapBundle\Form\Handler\ApiFormHandler; |
21 | - |
|
22 | 17 | use Oro\Bundle\NoteBundle\Entity\Repository\NoteRepository; |
23 | 18 | |
24 | 19 | /** |
@@ -3,16 +3,10 @@ |
||
3 | 3 | namespace Oro\Bundle\NoteBundle\Controller\Api\Soap; |
4 | 4 | |
5 | 5 | use Symfony\Component\Form\FormInterface; |
6 | - |
|
7 | 6 | use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; |
8 | - |
|
9 | -use Oro\Bundle\SecurityBundle\Annotation\Acl; |
|
10 | 7 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
11 | - |
|
12 | 8 | use Oro\Bundle\EntityBundle\Model\EntityIdSoap; |
13 | - |
|
14 | 9 | use Oro\Bundle\NoteBundle\Entity\Repository\NoteRepository; |
15 | - |
|
16 | 10 | use Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager; |
17 | 11 | use Oro\Bundle\SoapBundle\Controller\Api\Soap\SoapController; |
18 | 12 | use Oro\Bundle\SoapBundle\Form\Handler\ApiFormHandler; |
@@ -3,16 +3,11 @@ |
||
3 | 3 | namespace Oro\Bundle\NoteBundle\Controller; |
4 | 4 | |
5 | 5 | use Symfony\Component\Security\Core\Util\ClassUtils; |
6 | - |
|
7 | 6 | use FOS\RestBundle\Util\Codes; |
8 | - |
|
9 | 7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
10 | -use Symfony\Bundle\FrameworkBundle\Routing\Router; |
|
11 | 8 | use Symfony\Component\HttpFoundation\Response; |
12 | - |
|
13 | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
14 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
15 | - |
|
16 | 11 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
17 | 12 | use Oro\Bundle\EntityBundle\Tools\EntityRoutingHelper; |
18 | 13 | use Oro\Bundle\NoteBundle\Entity\Note; |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Util\ClassUtils; |
6 | 6 | use Doctrine\ORM\EntityNotFoundException; |
7 | - |
|
8 | 7 | use Oro\Bundle\EntityBundle\Model\EntityIdSoap; |
9 | - |
|
10 | 8 | use Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager as BaseApiEntityManager; |
11 | 9 | |
12 | 10 | class ApiEntityManager extends BaseApiEntityManager |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\NoteBundle\Entity\Manager; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Oro\Bundle\AttachmentBundle\Manager\AttachmentManager; |
8 | 7 | use Oro\Bundle\EntityBundle\Provider\EntityNameResolver; |
9 | 8 | use Oro\Bundle\NoteBundle\Entity\Note; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\NoteBundle\Entity; |
4 | 4 | |
5 | 5 | use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; |
6 | - |
|
7 | 6 | use Oro\Bundle\SoapBundle\Entity\SoapEntityInterface; |
8 | 7 | |
9 | 8 | /** |
@@ -4,17 +4,12 @@ |
||
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\EntityBundle\Model\EntityIdSoap; |
11 | - |
|
12 | 9 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
13 | 10 | use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; |
14 | - |
|
15 | 11 | use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope; |
16 | 12 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
17 | - |
|
18 | 13 | use Oro\Bundle\NoteBundle\Entity\Note; |
19 | 14 | use Oro\Bundle\NoteBundle\Entity\NoteSoap; |
20 | 15 |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace Oro\Bundle\NoteBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormInterface; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | - |
|
10 | 8 | use Oro\Bundle\NoteBundle\Entity\Note; |
11 | 9 | |
12 | 10 | class NoteHandler |