@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | 'controllers' => [ |
| 51 | 51 | 'factories' => [ |
| 52 | - 'Organizations/InviteEmployee' => [\Organizations\Controller\InviteEmployeeController::class,'factory'], |
|
| 52 | + 'Organizations/InviteEmployee' => [\Organizations\Controller\InviteEmployeeController::class,'factory'], |
|
| 53 | 53 | 'Organizations/Index' => 'Organizations\Factory\Controller\IndexControllerFactory', |
| 54 | 54 | ] |
| 55 | 55 | ], |
@@ -65,14 +65,14 @@ discard block |
||
| 65 | 65 | 'view_manager' => [ |
| 66 | 66 | // Map template to files. Speeds up the lookup through the template stack. |
| 67 | 67 | 'template_map' => [ |
| 68 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
| 69 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
| 70 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
| 71 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
| 72 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
| 73 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
| 74 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
| 75 | - 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
| 68 | + 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
| 69 | + 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
| 70 | + 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
| 71 | + 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
| 72 | + 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
| 73 | + 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
| 74 | + 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
| 75 | + 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
| 76 | 76 | ], |
| 77 | 77 | // Where to look for view templates not mapped above |
| 78 | 78 | 'template_path_stack' => [ |
@@ -81,23 +81,23 @@ discard block |
||
| 81 | 81 | ], |
| 82 | 82 | 'form_elements' => [ |
| 83 | 83 | 'invokables' => [ |
| 84 | - 'Organizations/Form' => 'Organizations\Form\Organizations', |
|
| 85 | - 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
| 86 | - 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
| 87 | - 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
| 88 | - 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
| 89 | - 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
| 90 | - //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
| 91 | - 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
| 92 | - 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
| 93 | - 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
| 94 | - 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
| 95 | - 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
| 96 | - 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
| 84 | + 'Organizations/Form' => 'Organizations\Form\Organizations', |
|
| 85 | + 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
| 86 | + 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
| 87 | + 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
| 88 | + 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
| 89 | + 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
| 90 | + //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
| 91 | + 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
| 92 | + 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
| 93 | + 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
| 94 | + 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
| 95 | + 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
| 96 | + 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
| 97 | 97 | |
| 98 | 98 | ], |
| 99 | 99 | 'factories' => [ |
| 100 | - 'Organizations/OrganizationsNameFieldset' => \Organizations\Factory\Form\OrganizationsNameFieldsetFactory::class, |
|
| 100 | + 'Organizations/OrganizationsNameFieldset' => \Organizations\Factory\Form\OrganizationsNameFieldsetFactory::class, |
|
| 101 | 101 | 'Organizations/Image' => \Organizations\Form\LogoImageFactory::class, |
| 102 | 102 | 'Organizations/EmployeesFieldset' => 'Organizations\Factory\Form\EmployeesFieldsetFactory', |
| 103 | 103 | 'Organizations/EmployeeFieldset' => 'Organizations\Factory\Form\EmployeeFieldsetFactory', |
@@ -194,13 +194,13 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | 'service_manager' => [ |
| 196 | 196 | 'invokables' => [ |
| 197 | - 'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener' |
|
| 197 | + 'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener' |
|
| 198 | 198 | ], |
| 199 | 199 | 'factories' => [ |
| 200 | - 'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory', |
|
| 201 | - 'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory', |
|
| 202 | - 'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory', |
|
| 203 | - 'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory', |
|
| 200 | + 'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory', |
|
| 201 | + 'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory', |
|
| 202 | + 'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory', |
|
| 203 | + 'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory', |
|
| 204 | 204 | ], |
| 205 | 205 | ], |
| 206 | 206 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | ], |
| 14 | 14 | ], |
| 15 | 15 | 'annotation' => [ |
| 16 | - 'paths' => [ __DIR__ . '/../src/Organizations/Entity'] |
|
| 16 | + 'paths' => [__DIR__.'/../src/Organizations/Entity'] |
|
| 17 | 17 | ], |
| 18 | 18 | ], |
| 19 | 19 | 'eventmanager' => [ |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | 'translation_file_patterns' => [ |
| 41 | 41 | [ |
| 42 | 42 | 'type' => 'gettext', |
| 43 | - 'base_dir' => __DIR__ . '/../language', |
|
| 43 | + 'base_dir' => __DIR__.'/../language', |
|
| 44 | 44 | 'pattern' => '%s.mo', |
| 45 | 45 | ], |
| 46 | 46 | ], |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | 'controllers' => [ |
| 51 | 51 | 'factories' => [ |
| 52 | - 'Organizations/InviteEmployee' => [\Organizations\Controller\InviteEmployeeController::class,'factory'], |
|
| 52 | + 'Organizations/InviteEmployee' => [\Organizations\Controller\InviteEmployeeController::class, 'factory'], |
|
| 53 | 53 | 'Organizations/Index' => 'Organizations\Factory\Controller\IndexControllerFactory', |
| 54 | 54 | ] |
| 55 | 55 | ], |
@@ -65,18 +65,18 @@ discard block |
||
| 65 | 65 | 'view_manager' => [ |
| 66 | 66 | // Map template to files. Speeds up the lookup through the template stack. |
| 67 | 67 | 'template_map' => [ |
| 68 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
| 69 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
| 70 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
| 71 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
| 72 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
| 73 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
| 74 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
| 75 | - 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
| 68 | + 'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml', |
|
| 69 | + 'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml', |
|
| 70 | + 'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml', |
|
| 71 | + 'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml', |
|
| 72 | + 'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
| 73 | + 'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml', |
|
| 74 | + 'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml', |
|
| 75 | + 'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml', |
|
| 76 | 76 | ], |
| 77 | 77 | // Where to look for view templates not mapped above |
| 78 | 78 | 'template_path_stack' => [ |
| 79 | - __DIR__ . '/../view', |
|
| 79 | + __DIR__.'/../view', |
|
| 80 | 80 | ], |
| 81 | 81 | ], |
| 82 | 82 | 'form_elements' => [ |
@@ -146,11 +146,11 @@ discard block |
||
| 146 | 146 | 'allow' => [ |
| 147 | 147 | 'Entity/OrganizationImage', |
| 148 | 148 | 'route/lang/organizations/invite', |
| 149 | - 'Organizations/InviteEmployee' => [ 'accept' ], |
|
| 149 | + 'Organizations/InviteEmployee' => ['accept'], |
|
| 150 | 150 | ], |
| 151 | 151 | 'deny' => [ |
| 152 | 152 | 'route/lang/organizations', |
| 153 | - 'Organizations/InviteEmployee' => [ 'invite' ], |
|
| 153 | + 'Organizations/InviteEmployee' => ['invite'], |
|
| 154 | 154 | ], |
| 155 | 155 | ], |
| 156 | 156 | // recruiters are allowed to view their companies |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | 'allow' => [ |
| 159 | 159 | 'route/lang/organizations', |
| 160 | 160 | 'Organizations/InviteEmployee', |
| 161 | - 'Entity/Organization' => [ 'edit' => 'Organizations/Write' ], |
|
| 161 | + 'Entity/Organization' => ['edit' => 'Organizations/Write'], |
|
| 162 | 162 | ], |
| 163 | 163 | ], |
| 164 | 164 | ], |
@@ -174,8 +174,8 @@ discard block |
||
| 174 | 174 | 'organizations' => [ |
| 175 | 175 | 'label' => 'Organizations', |
| 176 | 176 | 'route' => 'lang/organizations', |
| 177 | - 'order' => 65, // allows to order the menu items |
|
| 178 | - 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
| 177 | + 'order' => 65, // allows to order the menu items |
|
| 178 | + 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
| 179 | 179 | |
| 180 | 180 | 'pages' => [ |
| 181 | 181 | 'list' => [ |
@@ -17,18 +17,18 @@ |
||
| 17 | 17 | |
| 18 | 18 | class OrganizationHydratorFactory implements FactoryInterface |
| 19 | 19 | { |
| 20 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) { |
|
| 21 | - $repositoryManager = $container->get('repositories'); |
|
| 22 | - $repOrganization = $repositoryManager->get('Organizations/Organization'); |
|
| 23 | - $repOrganizationName = $repositoryManager->get('Organizations/OrganizationName'); |
|
| 24 | - $repOrganizationImage = $repositoryManager->get('Organizations/OrganizationImage'); |
|
| 25 | - $object = new OrganizationHydrator($repOrganization, $repOrganizationName, $repOrganizationImage); |
|
| 20 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) { |
|
| 21 | + $repositoryManager = $container->get('repositories'); |
|
| 22 | + $repOrganization = $repositoryManager->get('Organizations/Organization'); |
|
| 23 | + $repOrganizationName = $repositoryManager->get('Organizations/OrganizationName'); |
|
| 24 | + $repOrganizationImage = $repositoryManager->get('Organizations/OrganizationImage'); |
|
| 25 | + $object = new OrganizationHydrator($repOrganization, $repOrganizationName, $repOrganizationImage); |
|
| 26 | 26 | |
| 27 | - // injecting the strategies |
|
| 28 | - $httpload = new HttploadStrategy($repOrganizationImage); |
|
| 29 | - $organizationName = new OrganizationNameStrategy($repOrganizationName); |
|
| 30 | - $object->addStrategy('image', $httpload); |
|
| 31 | - $object->addStrategy('organizationName', $organizationName); |
|
| 32 | - return $object; |
|
| 33 | - } |
|
| 27 | + // injecting the strategies |
|
| 28 | + $httpload = new HttploadStrategy($repOrganizationImage); |
|
| 29 | + $organizationName = new OrganizationNameStrategy($repOrganizationName); |
|
| 30 | + $object->addStrategy('image', $httpload); |
|
| 31 | + $object->addStrategy('organizationName', $organizationName); |
|
| 32 | + return $object; |
|
| 33 | + } |
|
| 34 | 34 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | class OrganizationHydratorFactory implements FactoryInterface |
| 19 | 19 | { |
| 20 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) { |
|
| 20 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { |
|
| 21 | 21 | $repositoryManager = $container->get('repositories'); |
| 22 | 22 | $repOrganization = $repositoryManager->get('Organizations/Organization'); |
| 23 | 23 | $repOrganizationName = $repositoryManager->get('Organizations/OrganizationName'); |
@@ -33,6 +33,6 @@ |
||
| 33 | 33 | $viewHelper = $container->get('ViewHelperManager'); |
| 34 | 34 | $translator = $container->get('translator'); |
| 35 | 35 | |
| 36 | - return new IndexController($form, $organizationRepository,$translator,$formManager,$viewHelper); |
|
| 36 | + return new IndexController($form, $organizationRepository, $translator, $formManager, $viewHelper); |
|
| 37 | 37 | } |
| 38 | 38 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 28 | 28 | { |
| 29 | - // @TODO: [ZF3] Check if InvitationHandlerFactory still working properly |
|
| 29 | + // @TODO: [ZF3] Check if InvitationHandlerFactory still working properly |
|
| 30 | 30 | |
| 31 | 31 | /* @var $container \Zend\Mvc\Controller\PluginManager */ |
| 32 | 32 | $validator = $container->get('ValidatorManager')->get('EmailAddress'); |
@@ -22,20 +22,20 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class OrganizationsNameFieldsetFactory implements FactoryInterface |
| 24 | 24 | { |
| 25 | - /** |
|
| 26 | - * @param ContainerInterface $container |
|
| 27 | - * @param string $requestedName |
|
| 28 | - * @param array|null $options |
|
| 29 | - * |
|
| 30 | - * @inheritdoc |
|
| 31 | - * @return OrganizationsNameFieldset |
|
| 32 | - */ |
|
| 33 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 34 | - { |
|
| 35 | - $fieldset = new OrganizationsNameFieldset($requestedName,$options); |
|
| 25 | + /** |
|
| 26 | + * @param ContainerInterface $container |
|
| 27 | + * @param string $requestedName |
|
| 28 | + * @param array|null $options |
|
| 29 | + * |
|
| 30 | + * @inheritdoc |
|
| 31 | + * @return OrganizationsNameFieldset |
|
| 32 | + */ |
|
| 33 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 34 | + { |
|
| 35 | + $fieldset = new OrganizationsNameFieldset($requestedName,$options); |
|
| 36 | 36 | |
| 37 | - $fieldset->setRepositories($container->get('repositories')); |
|
| 38 | - return $fieldset; |
|
| 39 | - } |
|
| 37 | + $fieldset->setRepositories($container->get('repositories')); |
|
| 38 | + return $fieldset; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | 41 | } |
| 42 | 42 | \ No newline at end of file |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | * @inheritdoc |
| 31 | 31 | * @return OrganizationsNameFieldset |
| 32 | 32 | */ |
| 33 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 33 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
| 34 | 34 | { |
| 35 | - $fieldset = new OrganizationsNameFieldset($requestedName,$options); |
|
| 35 | + $fieldset = new OrganizationsNameFieldset($requestedName, $options); |
|
| 36 | 36 | |
| 37 | 37 | $fieldset->setRepositories($container->get('repositories')); |
| 38 | 38 | return $fieldset; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | class InviteEmployeeController extends AbstractActionController |
| 31 | 31 | { |
| 32 | - protected $repositories; |
|
| 32 | + protected $repositories; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Invitation first step: Create or find user and send mail. |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | $result = $this->forward()->dispatch('Auth\Controller\Password', array('action' => 'index')); |
| 104 | 104 | $model = new ViewModel( |
| 105 | 105 | array( |
| 106 | - 'organization' => $organization->getOrganizationName()->getName() |
|
| 107 | - ) |
|
| 106 | + 'organization' => $organization->getOrganizationName()->getName() |
|
| 107 | + ) |
|
| 108 | 108 | ); |
| 109 | 109 | |
| 110 | 110 | if (!$result->getVariable('valid', false)) { |
@@ -144,8 +144,8 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | return new ViewModel( |
| 146 | 146 | array( |
| 147 | - 'organization' => $organization->getOrganizationName()->getName() |
|
| 148 | - ) |
|
| 147 | + 'organization' => $organization->getOrganizationName()->getName() |
|
| 148 | + ) |
|
| 149 | 149 | ); |
| 150 | 150 | } |
| 151 | 151 | |
@@ -170,20 +170,20 @@ discard block |
||
| 170 | 170 | return $model; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - /** |
|
| 174 | - * Initialize required used service for this container |
|
| 175 | - * |
|
| 176 | - * @param ContainerInterface $container |
|
| 177 | - */ |
|
| 173 | + /** |
|
| 174 | + * Initialize required used service for this container |
|
| 175 | + * |
|
| 176 | + * @param ContainerInterface $container |
|
| 177 | + */ |
|
| 178 | 178 | public function initContainer(ContainerInterface $container) |
| 179 | 179 | { |
| 180 | - $this->repositories = $container->get('repositories'); |
|
| 180 | + $this->repositories = $container->get('repositories'); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - static public function factory(ContainerInterface $container) |
|
| 184 | - { |
|
| 185 | - $ob = new static(); |
|
| 186 | - $ob->initContainer($container); |
|
| 187 | - return $ob; |
|
| 188 | - } |
|
| 183 | + static public function factory(ContainerInterface $container) |
|
| 184 | + { |
|
| 185 | + $ob = new static(); |
|
| 186 | + $ob->initContainer($container); |
|
| 187 | + return $ob; |
|
| 188 | + } |
|
| 189 | 189 | } |
@@ -24,31 +24,31 @@ |
||
| 24 | 24 | class OrganizationsNameFieldset extends Fieldset |
| 25 | 25 | { |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * @var RepositoryService |
|
| 29 | - */ |
|
| 30 | - private $repositories; |
|
| 27 | + /** |
|
| 28 | + * @var RepositoryService |
|
| 29 | + */ |
|
| 30 | + private $repositories; |
|
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @return RepositoryService |
|
| 34 | - */ |
|
| 35 | - public function getRepositories() |
|
| 36 | - { |
|
| 37 | - return $this->repositories; |
|
| 38 | - } |
|
| 32 | + /** |
|
| 33 | + * @return RepositoryService |
|
| 34 | + */ |
|
| 35 | + public function getRepositories() |
|
| 36 | + { |
|
| 37 | + return $this->repositories; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @param RepositoryService $repositories |
|
| 42 | - */ |
|
| 43 | - public function setRepositories( $repositories ) |
|
| 44 | - { |
|
| 45 | - $this->repositories = $repositories; |
|
| 46 | - } |
|
| 40 | + /** |
|
| 41 | + * @param RepositoryService $repositories |
|
| 42 | + */ |
|
| 43 | + public function setRepositories( $repositories ) |
|
| 44 | + { |
|
| 45 | + $this->repositories = $repositories; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - public function getHydrator() |
|
| 48 | + public function getHydrator() |
|
| 49 | 49 | { |
| 50 | 50 | if (!$this->hydrator) { |
| 51 | - /* @var $formElementManager FormElementManagerV3Polyfill */ |
|
| 51 | + /* @var $formElementManager FormElementManagerV3Polyfill */ |
|
| 52 | 52 | $hydrator = new EntityHydrator(); |
| 53 | 53 | $formFactory = $this->getFormFactory(); |
| 54 | 54 | $formElementManager = $formFactory->getFormElementManager(); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * @param RepositoryService $repositories |
| 42 | 42 | */ |
| 43 | - public function setRepositories( $repositories ) |
|
| 43 | + public function setRepositories($repositories) |
|
| 44 | 44 | { |
| 45 | 45 | $this->repositories = $repositories; |
| 46 | 46 | } |
@@ -50,9 +50,9 @@ |
||
| 50 | 50 | 'property' => 'images', |
| 51 | 51 | 'use_files_array' => true, |
| 52 | 52 | |
| 53 | - 'options' => [ |
|
| 53 | + 'options' => [ |
|
| 54 | 54 | |
| 55 | - ] |
|
| 55 | + ] |
|
| 56 | 56 | ), |
| 57 | 57 | |
| 58 | 58 | 'descriptionForm' => array( |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | /* @var $serviceLocator \Core\Mail\MailService */ |
| 49 | 49 | /* @var $owner \Auth\Entity\UserInterface */ |
| 50 | 50 | /* @var $user \Auth\Entity\UserInterface */ |
| 51 | - $this->setCreationOptions($options); |
|
| 51 | + $this->setCreationOptions($options); |
|
| 52 | 52 | $auth = $container->get('AuthenticationService'); |
| 53 | 53 | $router = $container->get('Router'); |
| 54 | 54 | |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | * @return void |
| 108 | 108 | * @throws \InvalidArgumentException |
| 109 | 109 | */ |
| 110 | - public function setCreationOptions(array $options=null) |
|
| 110 | + public function setCreationOptions(array $options = null) |
|
| 111 | 111 | { |
| 112 | 112 | if (!isset($options['user']) || !$options['user'] instanceof UserInterface) { |
| 113 | 113 | throw new \InvalidArgumentException('An user interface is required!'); |