@@ -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([ |
@@ -64,8 +64,8 @@ |
||
64 | 64 | ); |
65 | 65 | |
66 | 66 | return '<script type="application/ld+json">' |
67 | - . $jsonLdProvider->toJsonLd() |
|
68 | - . '</script>'; |
|
67 | + . $jsonLdProvider->toJsonLd() |
|
68 | + . '</script>'; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |