@@ -4,14 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\ORM\QueryBuilder; |
7 | - |
|
8 | 7 | use Symfony\Component\Console\Helper\ProgressHelper; |
9 | 8 | use Symfony\Component\Console\Input\InputInterface; |
10 | 9 | use Symfony\Component\Console\Input\InputOption; |
11 | 10 | use Symfony\Component\Console\Output\OutputInterface; |
12 | 11 | use Symfony\Component\PropertyAccess\PropertyAccess; |
13 | 12 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
14 | - |
|
15 | 13 | use Oro\Bundle\BatchBundle\ORM\Query\BufferedQueryResultIterator; |
16 | 14 | |
17 | 15 | abstract class RecalculateLifetimeCommand extends ContainerAwareCommand |
@@ -3,16 +3,12 @@ discard block |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Controller\Api\Rest; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityNotFoundException; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpFoundation\Response; |
8 | - |
|
9 | 7 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
10 | - |
|
11 | 8 | use FOS\RestBundle\Util\Codes; |
12 | 9 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
13 | 10 | use FOS\RestBundle\Controller\Annotations\QueryParam; |
14 | 11 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
15 | - |
|
16 | 12 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
17 | 13 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
18 | 14 | use Oro\Bundle\SecurityBundle\Exception\ForbiddenException; |
@@ -21,7 +17,6 @@ discard block |
||
21 | 17 | use Oro\Bundle\SoapBundle\Request\Parameters\Filter\BooleanParameterFilter; |
22 | 18 | use Oro\Bundle\SoapBundle\Request\Parameters\Filter\EntityClassParameterFilter; |
23 | 19 | use Oro\Bundle\SoapBundle\Request\Parameters\Filter\StringToArrayParameterFilter; |
24 | - |
|
25 | 20 | use OroCRM\Bundle\ChannelBundle\Event\ChannelDeleteEvent; |
26 | 21 | use OroCRM\Bundle\ChannelBundle\Event\ChannelBeforeDeleteEvent; |
27 | 22 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Controller\Dashboard; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
6 | - |
|
7 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
8 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
9 | 8 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Entity; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | - |
|
7 | 6 | use OroCRM\Bundle\ChannelBundle\Model\ChannelAwareInterface; |
8 | 7 | |
9 | 8 | /** |
@@ -91,7 +91,7 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @return bool |
|
94 | + * @return string |
|
95 | 95 | */ |
96 | 96 | public function getStatus() |
97 | 97 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Entity; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | - |
|
7 | 6 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
8 | 7 | use OroCRM\Bundle\ChannelBundle\Model\ChannelAwareInterface; |
9 | 8 |
@@ -104,7 +104,7 @@ |
||
104 | 104 | /** |
105 | 105 | * Returns form instance |
106 | 106 | * |
107 | - * @return FormInterface |
|
107 | + * @return \Symfony\Component\Form\FormView |
|
108 | 108 | */ |
109 | 109 | public function getFormView() |
110 | 110 | { |
@@ -3,12 +3,10 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormInterface; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | 8 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
10 | 9 | use Symfony\Bridge\Doctrine\RegistryInterface; |
11 | - |
|
12 | 10 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
13 | 11 | use OroCRM\Bundle\ChannelBundle\Event\ChannelSaveEvent; |
14 | 12 | use OroCRM\Bundle\ChannelBundle\Form\Type\ChannelType; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\Form\FormInterface; |
7 | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | 8 | use Symfony\Component\Form\FormFactoryInterface; |
9 | - |
|
10 | 9 | use Oro\Bundle\FormBundle\Utils\FormUtils; |
11 | 10 | use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration; |
12 | 11 | use Oro\Bundle\IntegrationBundle\Form\Handler\ChannelHandler as IntegrationChannelHandler; |
@@ -6,10 +6,8 @@ |
||
6 | 6 | use Symfony\Bridge\Doctrine\ManagerRegistry; |
7 | 7 | use Symfony\Component\Form\FormBuilderInterface; |
8 | 8 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
9 | - |
|
10 | 9 | use Oro\Bundle\FormBundle\Form\DataTransformer\EntityToIdTransformer; |
11 | 10 | use Oro\Bundle\FormBundle\Form\DataTransformer\ArrayToJsonTransformer; |
12 | - |
|
13 | 11 | use OroCRM\Bundle\ChannelBundle\Form\DataTransformer\DatasourceDataTransformer; |
14 | 12 | |
15 | 13 | class ChannelDatasourceType extends AbstractType |
@@ -6,16 +6,12 @@ |
||
6 | 6 | use Doctrine\DBAL\Connection; |
7 | 7 | use Doctrine\ORM\QueryBuilder; |
8 | 8 | use Doctrine\ORM\EntityManager; |
9 | -use Doctrine\Common\Util\ClassUtils; |
|
10 | 9 | use Doctrine\Common\DataFixtures\AbstractFixture; |
11 | 10 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
12 | - |
|
13 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
14 | 12 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
15 | - |
|
16 | 13 | use Oro\Bundle\BatchBundle\ORM\Query\QueryCountCalculator; |
17 | 14 | use Oro\Bundle\BatchBundle\ORM\Query\BufferedQueryResultIterator; |
18 | - |
|
19 | 15 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
20 | 16 | |
21 | 17 | abstract class AbstractDefaultChannelDataFixture extends AbstractFixture implements |