@@ -227,11 +227,11 @@ discard block |
||
227 | 227 | protected function save() |
228 | 228 | { |
229 | 229 | $formEvents = $this->jobFormEvents; |
230 | - $user = $this->auth->getUser(); |
|
230 | + $user = $this->auth->getUser(); |
|
231 | 231 | if (empty($user->getInfo()->getEmail())) { |
232 | 232 | return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail')); |
233 | 233 | } |
234 | - $userOrg = $user->getOrganization(); |
|
234 | + $userOrg = $user->getOrganization(); |
|
235 | 235 | if (!$userOrg->hasAssociation() || $userOrg->getOrganization()->isDraft()) { |
236 | 236 | return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany')); |
237 | 237 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | } |
262 | 262 | |
263 | 263 | |
264 | - $viewModel = null; |
|
264 | + $viewModel = null; |
|
265 | 265 | $this->acl($jobEntity, 'edit'); |
266 | 266 | if ($status = $params->fromQuery('status')) { |
267 | 267 | $this->changeStatus($jobEntity, $status); |
@@ -273,11 +273,11 @@ discard block |
||
273 | 273 | $instanceForm = null; |
274 | 274 | $formErrorMessages = array(); |
275 | 275 | |
276 | - if (isset($formIdentifier) && $request->isPost()) { |
|
276 | + if (isset($formIdentifier) && $request->isPost()) { |
|
277 | 277 | // at this point the form get instantiated and immediately accumulated |
278 | 278 | $instanceForm = $form->getForm($formIdentifier); |
279 | 279 | if (!isset($instanceForm)) { |
280 | - throw new \RuntimeException('No form found for "' . $formIdentifier . '"'); |
|
280 | + throw new \RuntimeException('No form found for "'.$formIdentifier.'"'); |
|
281 | 281 | } |
282 | 282 | // the id may be part of the postData, but it never should be altered |
283 | 283 | $postData = $request->getPost(); |
@@ -331,20 +331,20 @@ discard block |
||
331 | 331 | $jobValid = false; |
332 | 332 | $errorMessage[] = $this->translator->translate('Accept the Terms'); |
333 | 333 | } |
334 | - $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]); |
|
334 | + $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]); |
|
335 | 335 | foreach ($result as $messages) { |
336 | 336 | if (!$messages) { |
337 | 337 | continue; |
338 | 338 | } |
339 | 339 | if (!is_array($messages)) { |
340 | - $messages = [ $messages ]; |
|
340 | + $messages = [$messages]; |
|
341 | 341 | } |
342 | 342 | |
343 | 343 | $errorMessage = array_merge($errorMessage, $messages); |
344 | 344 | $jobValid = false; |
345 | 345 | } |
346 | 346 | |
347 | - $errorMessage = '<br />' . implode('<br />', $errorMessage); |
|
347 | + $errorMessage = '<br />'.implode('<br />', $errorMessage); |
|
348 | 348 | if ($isAjax) { |
349 | 349 | if ($instanceForm instanceof SummaryForm) { |
350 | 350 | $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY); |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | } else { |
353 | 353 | $viewHelper = 'form'; |
354 | 354 | } |
355 | - $viewHelperManager = $this->viewHelper; |
|
355 | + $viewHelperManager = $this->viewHelper; |
|
356 | 356 | $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm); |
357 | 357 | $viewModel = new JsonModel( |
358 | 358 | array( |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | } |
377 | 377 | } |
378 | 378 | } else { |
379 | - $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]); |
|
379 | + $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]); |
|
380 | 380 | // Job is deployed, some changes are now disabled |
381 | 381 | $form->enableAll(); |
382 | 382 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | |
385 | 385 | $completionLink = $this->url()->fromRoute( |
386 | 386 | 'lang/jobs/completion', |
387 | - [ 'id' => $jobEntity->getId()] |
|
387 | + ['id' => $jobEntity->getId()] |
|
388 | 388 | ); |
389 | 389 | |
390 | 390 | $viewModel = $this->getViewModel($form); |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | protected function getFormular($job) |
451 | 451 | { |
452 | 452 | /* @var $forms \Zend\Form\FormElementManager\FormElementManagerV3Polyfill */ |
453 | - $forms = $this->formManager; |
|
453 | + $forms = $this->formManager; |
|
454 | 454 | /* @var $container \Jobs\Form\Job */ |
455 | 455 | |
456 | 456 | $container = $forms->get( |
@@ -552,15 +552,15 @@ discard block |
||
552 | 552 | $jobEvent->setJobEntity($jobEntity); |
553 | 553 | $jobEvent->addPortal('XingVendorApi'); |
554 | 554 | $jobEvent->setTarget($this); |
555 | - $jobEvents = $this->jobEvents; |
|
555 | + $jobEvents = $this->jobEvents; |
|
556 | 556 | // array with differences between the last snapshot and the actual entity |
557 | 557 | // is remains Null if there is no snapshot |
558 | 558 | // it will be an empty array if the snapshot and the actual entity do not differ |
559 | - $diff = null; |
|
559 | + $diff = null; |
|
560 | 560 | |
561 | 561 | |
562 | 562 | if ($params == 'declined') { |
563 | - if ($jobEntity instanceOf JobSnapshot) { |
|
563 | + if ($jobEntity instanceOf JobSnapshot) { |
|
564 | 564 | $jobEntity->getOriginalEntity()->changeStatus( |
565 | 565 | Status::ACTIVE, |
566 | 566 | sprintf( |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | */ |
639 | 639 | public function deactivateAction() |
640 | 640 | { |
641 | - $user = $this->auth->getUser(); |
|
641 | + $user = $this->auth->getUser(); |
|
642 | 642 | |
643 | 643 | $jobEntity = $this->initializeJob()->get($this->params()); |
644 | 644 |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | $date = new \DateTime('today'); |
58 | - $date->sub(new \DateInterval('P' . $days . 'D')); |
|
58 | + $date->sub(new \DateInterval('P'.$days.'D')); |
|
59 | 59 | |
60 | - $query = [ |
|
60 | + $query = [ |
|
61 | 61 | '$and' => [ |
62 | 62 | ['status.name' => StatusInterface::ACTIVE], |
63 | 63 | ['$or' => [ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $offset = 0; |
75 | 75 | if ($limit && false !== strpos($limit, ',')) { |
76 | - list($limit,$offset) = explode(',', $limit); |
|
76 | + list($limit, $offset) = explode(',', $limit); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | $jobs = $jobsRepo->findBy($query, null, (int) $limit, (int) $offset); |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | if ($info) { |
87 | - echo count($jobs) , ' Jobs'; |
|
88 | - if ($offset) { echo ' starting from ' . $offset; } |
|
89 | - echo PHP_EOL . PHP_EOL; |
|
87 | + echo count($jobs), ' Jobs'; |
|
88 | + if ($offset) { echo ' starting from '.$offset; } |
|
89 | + echo PHP_EOL.PHP_EOL; |
|
90 | 90 | $this->listExpiredJobs($jobs); |
91 | 91 | return; |
92 | 92 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | // |
98 | 98 | echo "$count jobs found, which have to expire ...\n"; |
99 | 99 | |
100 | - $progress = new ProgressBar( |
|
100 | + $progress = new ProgressBar( |
|
101 | 101 | new ConsoleAdapter( |
102 | 102 | array( |
103 | 103 | 'elements' => array( |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | /* @var \Jobs\Entity\Job $job */ |
122 | 122 | foreach ($jobs as $job) { |
123 | - $progress->update($i++, 'Job ' . $i . ' / ' . $count); |
|
123 | + $progress->update($i++, 'Job '.$i.' / '.$count); |
|
124 | 124 | |
125 | 125 | $job->changeStatus('expired'); |
126 | 126 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $i = 0; |
149 | 149 | /* @var Job $job */ |
150 | 150 | foreach ($jobs as $job) { |
151 | - $progress->update($i++, 'Job ' . $i . ' / ' . $count); |
|
151 | + $progress->update($i++, 'Job '.$i.' / '.$count); |
|
152 | 152 | |
153 | 153 | $permissions = $job->getPermissions(); |
154 | 154 | $user = $job->getUser(); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | continue; |
157 | 157 | } |
158 | 158 | try { |
159 | - $group = $user->getGroup($job->getCompany()); |
|
159 | + $group = $user->getGroup($job->getCompany()); |
|
160 | 160 | } catch (\Exception $e) { |
161 | 161 | continue; |
162 | 162 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $org = $job->getCompany(); |
196 | 196 | } |
197 | 197 | printf( |
198 | - '%s %s %s %-30s %-20s' . PHP_EOL, |
|
198 | + '%s %s %s %-30s %-20s'.PHP_EOL, |
|
199 | 199 | $id, |
200 | 200 | $job->getDatePublishStart()->format('Y-m-d'), |
201 | 201 | $job->getDatePublishEnd()->format('Y-m-d'), |
@@ -203,6 +203,6 @@ discard block |
||
203 | 203 | substr($org, 0, 20) |
204 | 204 | ); |
205 | 205 | } |
206 | - return count($jobs) . ' Jobs.'; |
|
206 | + return count($jobs).' Jobs.'; |
|
207 | 207 | } |
208 | 208 | } |
@@ -513,10 +513,10 @@ discard block |
||
513 | 513 | public function getLocation() |
514 | 514 | { |
515 | 515 | if (null === $this->location) { |
516 | - $array=[]; |
|
517 | - if(null != $this->locations){ |
|
516 | + $array = []; |
|
517 | + if (null != $this->locations) { |
|
518 | 518 | foreach ($this->locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
519 | - $array[]=(string) $location; |
|
519 | + $array[] = (string) $location; |
|
520 | 520 | } |
521 | 521 | return implode(', ', $array); |
522 | 522 | } |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | if ($removePermissions) { |
572 | 572 | $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL); |
573 | 573 | } |
574 | - $this->user=null; |
|
574 | + $this->user = null; |
|
575 | 575 | } |
576 | 576 | |
577 | 577 | return $this; |
@@ -579,8 +579,8 @@ discard block |
||
579 | 579 | |
580 | 580 | public function unsetOrganization($removePermissions = true) |
581 | 581 | { |
582 | - if($this->organization && $removePermissions){ |
|
583 | - $this->getPermissions()->revoke($this->organization,Permissions::PERMISSION_ALL); |
|
582 | + if ($this->organization && $removePermissions) { |
|
583 | + $this->getPermissions()->revoke($this->organization, Permissions::PERMISSION_ALL); |
|
584 | 584 | } |
585 | 585 | |
586 | 586 | $this->organization = null; |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | $organization = $this->organization; |
833 | 833 | if (is_object($organization) && $organization->getImage()) { |
834 | 834 | $organizationImage = $organization->getImage(); |
835 | - return "/file/Organizations.OrganizationImage/" . $organizationImage->getId(); |
|
835 | + return "/file/Organizations.OrganizationImage/".$organizationImage->getId(); |
|
836 | 836 | } |
837 | 837 | return $this->logoRef; |
838 | 838 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $response->setStatusCode(Response::STATUS_CODE_404); |
42 | 42 | return $response; |
43 | 43 | } |
44 | - $jsonModel=new JsonModel(); |
|
44 | + $jsonModel = new JsonModel(); |
|
45 | 45 | $jsonModel->setVariables($this->apiJobDehydrator->dehydrateList($jobs)); |
46 | 46 | $jsonModel->setJsonpCallback($callback); |
47 | 47 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | 'title' => $job->getTitle(), |
64 | 64 | 'location' => $job->getLocation(), |
65 | 65 | 'link' => $this->jobUrl->__invoke( |
66 | - $job,[ |
|
66 | + $job, [ |
|
67 | 67 | 'linkOnly'=> true, |
68 | 68 | 'absolute' => true, |
69 | 69 | ] |
@@ -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 | ], |
@@ -66,19 +66,19 @@ discard block |
||
66 | 66 | 'view_manager' => [ |
67 | 67 | // Map template to files. Speeds up the lookup through the template stack. |
68 | 68 | 'template_map' => [ |
69 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
70 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
71 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
72 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
73 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
74 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
75 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
76 | - 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
77 | - 'organizations/profile/disabled' => __DIR__ . '/../view/organizations/profile/disabled.phtml', |
|
69 | + 'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml', |
|
70 | + 'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml', |
|
71 | + 'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml', |
|
72 | + 'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml', |
|
73 | + 'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
74 | + 'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml', |
|
75 | + 'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml', |
|
76 | + 'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml', |
|
77 | + 'organizations/profile/disabled' => __DIR__.'/../view/organizations/profile/disabled.phtml', |
|
78 | 78 | ], |
79 | 79 | // Where to look for view templates not mapped above |
80 | 80 | 'template_path_stack' => [ |
81 | - __DIR__ . '/../view', |
|
81 | + __DIR__.'/../view', |
|
82 | 82 | ], |
83 | 83 | ], |
84 | 84 | 'form_elements' => [ |
@@ -156,13 +156,13 @@ discard block |
||
156 | 156 | 'allow' => [ |
157 | 157 | 'Entity/OrganizationImage', |
158 | 158 | 'route/lang/organizations/invite', |
159 | - 'Organizations/InviteEmployee' => [ 'accept' ], |
|
159 | + 'Organizations/InviteEmployee' => ['accept'], |
|
160 | 160 | 'route/lang/organizations/profile', |
161 | 161 | 'route/lang/organizations/profileDetail', |
162 | 162 | ], |
163 | 163 | 'deny' => [ |
164 | 164 | 'route/lang/organizations', |
165 | - 'Organizations/InviteEmployee' => [ 'invite' ], |
|
165 | + 'Organizations/InviteEmployee' => ['invite'], |
|
166 | 166 | ], |
167 | 167 | ], |
168 | 168 | // recruiters are allowed to view their companies |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | 'allow' => [ |
171 | 171 | 'route/lang/organizations', |
172 | 172 | 'Organizations/InviteEmployee', |
173 | - 'Entity/Organization' => [ 'edit' => 'Organizations/Write' ], |
|
173 | + 'Entity/Organization' => ['edit' => 'Organizations/Write'], |
|
174 | 174 | 'route/lang/organizations/profile', |
175 | 175 | 'route/lang/organizations/profileDetail' |
176 | 176 | ], |
@@ -188,8 +188,8 @@ discard block |
||
188 | 188 | 'organizations' => [ |
189 | 189 | 'label' => 'Organizations', |
190 | 190 | 'route' => 'lang/organizations', |
191 | - 'order' => 65, // allows to order the menu items |
|
192 | - 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
191 | + 'order' => 65, // allows to order the menu items |
|
192 | + 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
193 | 193 | |
194 | 194 | 'pages' => [ |
195 | 195 | 'list' => [ |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | |
84 | 84 | $result = $this->pagination([ |
85 | - 'params' => ['Organizations_Profile',[ |
|
85 | + 'params' => ['Organizations_Profile', [ |
|
86 | 86 | 'q', |
87 | 87 | 'count' => $this->options['count'], |
88 | 88 | 'page' => 1, |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $repo = $this->repo; |
117 | 117 | $id = $this->params('id'); |
118 | 118 | |
119 | - if(is_null($id)){ |
|
119 | + if (is_null($id)) { |
|
120 | 120 | $this->getResponse()->setStatusCode(Response::STATUS_CODE_404); |
121 | 121 | return [ |
122 | 122 | 'message' => $translator->translate('Can not access profile page without id'), |
@@ -125,20 +125,20 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | $organization = $repo->find($id); |
128 | - if(!$organization instanceof Organization){ |
|
128 | + if (!$organization instanceof Organization) { |
|
129 | 129 | throw new NotFoundException($id); |
130 | 130 | } |
131 | 131 | |
132 | - if( |
|
132 | + if ( |
|
133 | 133 | Organization::PROFILE_DISABLED == $organization->getProfileSetting() |
134 | 134 | || is_null($organization->getProfileSetting()) |
135 | - ){ |
|
135 | + ) { |
|
136 | 136 | return $this->disabledProfileViewModel($organization); |
137 | 137 | } |
138 | 138 | |
139 | 139 | $result = $this->pagination([ |
140 | 140 | 'params' => [ |
141 | - 'Organization_Jobs',[ |
|
141 | + 'Organization_Jobs', [ |
|
142 | 142 | 'q', |
143 | 143 | 'organization_id' => $id, |
144 | 144 | 'count' => $this->options['count'], |
@@ -151,13 +151,13 @@ discard block |
||
151 | 151 | ], |
152 | 152 | ]); |
153 | 153 | |
154 | - if( |
|
154 | + if ( |
|
155 | 155 | Organization::PROFILE_ACTIVE_JOBS == $organization->getProfileSetting() |
156 | - ){ |
|
156 | + ) { |
|
157 | 157 | /* @var \Zend\Paginator\Paginator $paginator */ |
158 | 158 | $paginator = $result['jobs']; |
159 | 159 | $count = $paginator->getTotalItemCount(); |
160 | - if(0===$count){ |
|
160 | + if (0 === $count) { |
|
161 | 161 | return $this->disabledProfileViewModel($organization); |
162 | 162 | } |
163 | 163 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | use Zend\I18n\Translator\Resources; |
20 | 20 | use Zend\ServiceManager\Factory\InvokableFactory; |
21 | 21 | |
22 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
22 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
23 | 23 | |
24 | 24 | |
25 | 25 | return array( |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | 'doctrine' => $doctrineConfig, |
28 | 28 | |
29 | 29 | 'options' => [ |
30 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
30 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
31 | 31 | ], |
32 | 32 | |
33 | 33 | 'Core' => array( |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'name' => 'stream', |
48 | 48 | 'priority' => 1000, |
49 | 49 | 'options' => array( |
50 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
50 | + 'stream' => __DIR__.'/../../../log/yawik.log', |
|
51 | 51 | ), |
52 | 52 | ), |
53 | 53 | ), |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'name' => 'stream', |
59 | 59 | 'priority' => 1000, |
60 | 60 | 'options' => array( |
61 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
61 | + 'stream' => __DIR__.'/../../../log/mails.log', |
|
62 | 62 | ), |
63 | 63 | ), |
64 | 64 | ), |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
76 | 76 | 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
77 | 77 | 'strict' => true, // bool = cause immediate death|int = matched against error severity |
78 | - 'log' => __DIR__ . '/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
78 | + 'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
79 | 79 | 'email' => null, // in production mode notifies the recipient |
80 | 80 | 'email_snooze' => 900 // interval for sending email in seconds |
81 | 81 | ], |
@@ -220,16 +220,16 @@ discard block |
||
220 | 220 | 'Core/JsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
221 | 221 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
222 | 222 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
223 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
224 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
225 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
226 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
223 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
224 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
225 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
226 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
227 | 227 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
228 | 228 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
229 | 229 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
230 | 230 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
231 | 231 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
232 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
232 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
233 | 233 | ), |
234 | 234 | 'abstract_factories' => array( |
235 | 235 | 'Core\Factory\OptionsAbstractFactory', |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | 'translation_file_patterns' => array( |
253 | 253 | [ |
254 | 254 | 'type' => 'gettext', |
255 | - 'base_dir' => __DIR__ . '/../language', |
|
255 | + 'base_dir' => __DIR__.'/../language', |
|
256 | 256 | 'pattern' => '%s.mo', |
257 | 257 | ], |
258 | 258 | [ |
@@ -307,9 +307,9 @@ discard block |
||
307 | 307 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
308 | 308 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
309 | 309 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
310 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
311 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
312 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
310 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
311 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
312 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
313 | 313 | ), |
314 | 314 | 'invokables' => array( |
315 | 315 | 'Core/FileSender' => 'Core\Controller\Plugin\FileSender', |
@@ -339,32 +339,32 @@ discard block |
||
339 | 339 | 'exception_template' => 'error/index', |
340 | 340 | // Map template to files. Speeds up the lookup through the template stack. |
341 | 341 | 'template_map' => array( |
342 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
343 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
344 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
345 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
346 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
347 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
348 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
349 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
350 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
351 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
352 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
353 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
354 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
355 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
356 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
357 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
358 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
359 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
360 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
361 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
362 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
342 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
343 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
344 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
345 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
346 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
347 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
348 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
349 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
350 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
351 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
352 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
353 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
354 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
355 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
356 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
357 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
358 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
359 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
360 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
361 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
362 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
363 | 363 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
364 | 364 | ), |
365 | 365 | // Where to look for view templates not mapped above |
366 | 366 | 'template_path_stack' => array( |
367 | - __DIR__ . '/../view', |
|
367 | + __DIR__.'/../view', |
|
368 | 368 | ), |
369 | 369 | ), |
370 | 370 | 'view_helpers' => array( |
@@ -38,9 +38,9 @@ |
||
38 | 38 | $name = "\\$namespace\\Entity\\$entityName"; |
39 | 39 | } |
40 | 40 | |
41 | - $repository = $this->dm->getRepository($name); |
|
41 | + $repository = $this->dm->getRepository($name); |
|
42 | 42 | |
43 | - if (!$repository instanceOf AbstractRepository) { |
|
43 | + if (!$repository instanceOf AbstractRepository) { |
|
44 | 44 | $eventArgs = new DoctrineMongoODM\Event\EventArgs( |
45 | 45 | array( |
46 | 46 | 'repository' => $repository, |