@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | |
61 | 61 | protected $viewHelper; |
62 | 62 | |
63 | - /** |
|
64 | - * @param ContainerInterface $container |
|
65 | - * |
|
66 | - * @return ApplyController |
|
67 | - */ |
|
63 | + /** |
|
64 | + * @param ContainerInterface $container |
|
65 | + * |
|
66 | + * @return ApplyController |
|
67 | + */ |
|
68 | 68 | static public function factory(ContainerInterface $container) |
69 | 69 | { |
70 | 70 | $ob = new self(); |
@@ -72,24 +72,24 @@ discard block |
||
72 | 72 | return $ob; |
73 | 73 | } |
74 | 74 | |
75 | - public function setContainer( ContainerInterface $container ) |
|
76 | - { |
|
77 | - $this->config = $container->get('Config'); |
|
78 | - $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
79 | - $this->validator = $container->get('ValidatorManager'); |
|
80 | - $this->repositories = $container->get('repositories'); |
|
81 | - $this->appEvents = $container->get('Applications/Events'); |
|
82 | - $this->viewHelper = $container->get('ViewHelperManager'); |
|
83 | - } |
|
84 | - |
|
85 | - |
|
86 | - public function attachDefaultListeners() |
|
87 | - { |
|
88 | - parent::attachDefaultListeners(); |
|
89 | - $events = $this->getEventManager(); |
|
90 | - $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
91 | - return $this; |
|
92 | - } |
|
75 | + public function setContainer( ContainerInterface $container ) |
|
76 | + { |
|
77 | + $this->config = $container->get('Config'); |
|
78 | + $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
79 | + $this->validator = $container->get('ValidatorManager'); |
|
80 | + $this->repositories = $container->get('repositories'); |
|
81 | + $this->appEvents = $container->get('Applications/Events'); |
|
82 | + $this->viewHelper = $container->get('ViewHelperManager'); |
|
83 | + } |
|
84 | + |
|
85 | + |
|
86 | + public function attachDefaultListeners() |
|
87 | + { |
|
88 | + parent::attachDefaultListeners(); |
|
89 | + $events = $this->getEventManager(); |
|
90 | + $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
91 | + return $this; |
|
92 | + } |
|
93 | 93 | |
94 | 94 | public function preDispatch(MvcEvent $e) |
95 | 95 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | ->getHybridAuth(); |
267 | 267 | /* @var $authProfile \Hybrid_User_Profile */ |
268 | 268 | $authProfile = $hybridAuth->authenticate($network) |
269 | - ->getUserProfile(); |
|
269 | + ->getUserProfile(); |
|
270 | 270 | |
271 | 271 | /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */ |
272 | 272 | $profile = $this->plugin('Auth/SocialProfiles')->fetch($network); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | } |
320 | 320 | |
321 | 321 | return $this->redirect() |
322 | - ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
322 | + ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
323 | 323 | } |
324 | 324 | |
325 | 325 | public function processPreviewAction() |
@@ -329,11 +329,11 @@ discard block |
||
329 | 329 | |
330 | 330 | public function processAction() |
331 | 331 | { |
332 | - $params = $this->params(); |
|
332 | + $params = $this->params(); |
|
333 | 333 | $formName = $params->fromQuery('form'); |
334 | 334 | $form = $this->formContainer->getForm($formName); |
335 | 335 | $postData = $form->getOption('use_post_array') ? $params->fromPost() : array(); |
336 | - //@TODO: [ZF3] option use_files_array is false by default |
|
336 | + //@TODO: [ZF3] option use_files_array is false by default |
|
337 | 337 | //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array(); |
338 | 338 | $form->setData(array_merge($postData,$_FILES)); |
339 | 339 | |
@@ -363,9 +363,9 @@ discard block |
||
363 | 363 | |
364 | 364 | return new JsonModel( |
365 | 365 | array( |
366 | - 'valid' => $form->isValid(), |
|
367 | - 'content' => $content, |
|
368 | - 'isApplicationValid' => $this->checkApplication($application) |
|
366 | + 'valid' => $form->isValid(), |
|
367 | + 'content' => $content, |
|
368 | + 'isApplicationValid' => $this->checkApplication($application) |
|
369 | 369 | ) |
370 | 370 | ); |
371 | 371 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | ; |
90 | 90 | $data['attachments'] = []; |
91 | 91 | foreach ($object->getAttachments() as $file) { |
92 | - $data['attachments'][] = $this->serverUrl . $file->getUri(); |
|
92 | + $data['attachments'][] = $this->serverUrl . $file->getUri(); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | unset( |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | /** |
4 | 4 | * |
5 | - |
|
6 | 5 | */ |
7 | 6 | |
8 | 7 | declare(strict_types=1); |
@@ -22,8 +22,8 @@ |
||
22 | 22 | public function init() |
23 | 23 | { |
24 | 24 | $this->setName('base'); |
25 | - //->setLabel( /* @translate */ 'General'); |
|
26 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
25 | + //->setLabel( /* @translate */ 'General'); |
|
26 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
27 | 27 | |
28 | 28 | |
29 | 29 | $this->add([ |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | * @author Mathias Gelhausen <[email protected]> |
6 | 6 | */ |
7 | 7 | |
8 | - declare(strict_types=1); |
|
8 | + declare(strict_types=1); |
|
9 | 9 | |
10 | - namespace Organizations; |
|
10 | + namespace Organizations; |
|
11 | 11 | |
12 | 12 | use Laminas\ServiceManager\Factory\InvokableFactory; |
13 | 13 | |
@@ -74,15 +74,15 @@ discard block |
||
74 | 74 | 'view_manager' => [ |
75 | 75 | // Map template to files. Speeds up the lookup through the template stack. |
76 | 76 | 'template_map' => [ |
77 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
78 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
79 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
80 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
81 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
82 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
83 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
84 | - 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
85 | - 'organizations/form/featured-companies-filter-radio' => __DIR__ . '/../view/form/featured-companies-filter-radio.phtml', |
|
77 | + 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
78 | + 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
79 | + 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
80 | + 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
81 | + 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
82 | + 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
83 | + 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
84 | + 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
85 | + 'organizations/form/featured-companies-filter-radio' => __DIR__ . '/../view/form/featured-companies-filter-radio.phtml', |
|
86 | 86 | 'organizations/profile/disabled' => __DIR__ . '/../view/organizations/profile/disabled.phtml', |
87 | 87 | ], |
88 | 88 | // Where to look for view templates not mapped above |
@@ -92,21 +92,21 @@ discard block |
||
92 | 92 | ], |
93 | 93 | 'form_elements' => [ |
94 | 94 | 'invokables' => [ |
95 | - 'Organizations/Form' => 'Organizations\Form\Organizations', |
|
96 | - 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
97 | - 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
98 | - 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
99 | - 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
100 | - 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
101 | - //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
102 | - 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
103 | - 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
104 | - 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
105 | - 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
106 | - 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
107 | - 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
108 | - 'Organizations/Profile' => \Organizations\Form\OrganizationsProfileForm::class, |
|
109 | - 'Organizations/ProfileFieldset' => \Organizations\Form\OrganizationsProfileFieldset::class |
|
95 | + 'Organizations/Form' => 'Organizations\Form\Organizations', |
|
96 | + 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
97 | + 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
98 | + 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
99 | + 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
100 | + 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
101 | + //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
102 | + 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
103 | + 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
104 | + 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
105 | + 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
106 | + 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
107 | + 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
108 | + 'Organizations/Profile' => \Organizations\Form\OrganizationsProfileForm::class, |
|
109 | + 'Organizations/ProfileFieldset' => \Organizations\Form\OrganizationsProfileFieldset::class |
|
110 | 110 | ], |
111 | 111 | 'factories' => [ |
112 | 112 | 'Organizations/OrganizationsNameFieldset' => \Organizations\Factory\Form\OrganizationsNameFieldsetFactory::class, |
@@ -231,13 +231,13 @@ discard block |
||
231 | 231 | |
232 | 232 | 'service_manager' => [ |
233 | 233 | 'invokables' => [ |
234 | - 'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener' |
|
234 | + 'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener' |
|
235 | 235 | ], |
236 | 236 | 'factories' => [ |
237 | - 'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory', |
|
238 | - 'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory', |
|
239 | - 'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory', |
|
240 | - 'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory', |
|
237 | + 'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory', |
|
238 | + 'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory', |
|
239 | + 'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory', |
|
240 | + 'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory', |
|
241 | 241 | ], |
242 | 242 | ], |
243 | 243 |
@@ -8,9 +8,9 @@ |
||
8 | 8 | * @license MIT |
9 | 9 | */ |
10 | 10 | |
11 | - declare(strict_types=1); |
|
11 | + declare(strict_types=1); |
|
12 | 12 | |
13 | - namespace Organizations; |
|
13 | + namespace Organizations; |
|
14 | 14 | |
15 | 15 | return array( |
16 | 16 | 'router' => array( |