@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | use Core\Service\Tracy; |
23 | 23 | use Zend\I18n\Translator\Resources; |
24 | 24 | |
25 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
25 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
26 | 26 | |
27 | 27 | |
28 | 28 | return array( |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'doctrine' => $doctrineConfig, |
31 | 31 | |
32 | 32 | 'options' => [ |
33 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
33 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
34 | 34 | ], |
35 | 35 | |
36 | 36 | 'Core' => array( |
@@ -265,19 +265,19 @@ discard block |
||
265 | 265 | 'modules/Core/jsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
266 | 266 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
267 | 267 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
268 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
269 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
270 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
271 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
268 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
269 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
270 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
271 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
272 | 272 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
273 | 273 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
274 | 274 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
275 | 275 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
276 | 276 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
277 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
278 | - 'Tracy' => [Tracy::class,'factory'], |
|
277 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
278 | + 'Tracy' => [Tracy::class, 'factory'], |
|
279 | 279 | Service\EntityEraser\DefaultEntityLoaderListener::class => Service\EntityEraser\DefaultEntityLoaderListenerFactory::class, |
280 | - ClearCacheService::class => [ClearCacheService::class,'factory'] |
|
280 | + ClearCacheService::class => [ClearCacheService::class, 'factory'] |
|
281 | 281 | ), |
282 | 282 | 'abstract_factories' => array( |
283 | 283 | 'Core\Factory\OptionsAbstractFactory', |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | 'translation_file_patterns' => array( |
301 | 301 | [ |
302 | 302 | 'type' => 'gettext', |
303 | - 'base_dir' => __DIR__ . '/../language', |
|
303 | + 'base_dir' => __DIR__.'/../language', |
|
304 | 304 | 'pattern' => '%s.mo', |
305 | 305 | ], |
306 | 306 | [ |
@@ -345,8 +345,8 @@ discard block |
||
345 | 345 | 'Core/File' => FileControllerFactory::class, |
346 | 346 | 'Core/Content' => LazyControllerFactory::class, |
347 | 347 | Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class, |
348 | - AssetsInstallController::class => [AssetsInstallController::class,'factory'], |
|
349 | - ClearCacheController::class => [ClearCacheController::class,'factory'], |
|
348 | + AssetsInstallController::class => [AssetsInstallController::class, 'factory'], |
|
349 | + ClearCacheController::class => [ClearCacheController::class, 'factory'], |
|
350 | 350 | |
351 | 351 | ], |
352 | 352 | ), |
@@ -359,9 +359,9 @@ discard block |
||
359 | 359 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
360 | 360 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
361 | 361 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
362 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
363 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
364 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
362 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
363 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
364 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
365 | 365 | Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class, |
366 | 366 | ), |
367 | 367 | 'invokables' => array( |
@@ -392,32 +392,32 @@ discard block |
||
392 | 392 | 'exception_template' => 'error/index', |
393 | 393 | // Map template to files. Speeds up the lookup through the template stack. |
394 | 394 | 'template_map' => array( |
395 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
396 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
397 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
398 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
399 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
400 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
401 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
402 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
403 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
404 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
405 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
406 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
407 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
408 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
409 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
410 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
411 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
412 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
413 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
414 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
415 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
395 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
396 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
397 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
398 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
399 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
400 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
401 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
402 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
403 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
404 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
405 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
406 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
407 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
408 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
409 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
410 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
411 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
412 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
413 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
414 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
415 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
416 | 416 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
417 | 417 | ), |
418 | 418 | // Where to look for view templates not mapped above |
419 | 419 | 'template_path_stack' => array( |
420 | - __DIR__ . '/../view', |
|
420 | + __DIR__.'/../view', |
|
421 | 421 | ), |
422 | 422 | ), |
423 | 423 | 'view_helpers' => array( |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | // assets-install info |
98 | 98 | 'assets-install [--symlink] [--relative] <target>' => 'Install assets in the given target', |
99 | 99 | 'The assets-install command will install assets in the given <target> directory. If no option given this command will copy assets into the target.', |
100 | - ['--symlink','This option will install assets using absolute symlink directory'], |
|
101 | - ['--relative','This option will install assets using relative symlink'], |
|
100 | + ['--symlink', 'This option will install assets using absolute symlink directory'], |
|
101 | + ['--relative', 'This option will install assets using relative symlink'], |
|
102 | 102 | "" |
103 | 103 | ]; |
104 | 104 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | $eventManager->attach( |
166 | 166 | MvcEvent::EVENT_DISPATCH_ERROR, |
167 | - function ($event) { |
|
167 | + function($event) { |
|
168 | 168 | if ($event instanceof MvcEvent) { |
169 | 169 | $application = $event->getApplication(); |
170 | 170 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | ); |
181 | 181 | $eventManager->attach( |
182 | 182 | MvcEvent::EVENT_DISPATCH, |
183 | - function ($event) use ($eventManager) { |
|
183 | + function($event) use ($eventManager) { |
|
184 | 184 | $eventManager->trigger('postDispatch', $event); |
185 | 185 | }, |
186 | 186 | -150 |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function getConfig() |
198 | 198 | { |
199 | - $config = include __DIR__ . '/../config/module.config.php'; |
|
199 | + $config = include __DIR__.'/../config/module.config.php'; |
|
200 | 200 | return $config; |
201 | 201 | } |
202 | 202 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | public function init(ModuleManager $manager) |
207 | 207 | { |
208 | 208 | $events = $manager->getEventManager(); |
209 | - $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this,'onMergeConfig']); |
|
209 | + $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this, 'onMergeConfig']); |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |