@@ -41,24 +41,24 @@ discard block |
||
41 | 41 | 'log' => array( |
42 | 42 | 'Core/Log' => array( |
43 | 43 | 'writers' => array( |
44 | - array( |
|
45 | - 'name' => 'stream', |
|
44 | + array( |
|
45 | + 'name' => 'stream', |
|
46 | 46 | 'priority' => 1000, |
47 | 47 | 'options' => array( |
48 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
48 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
49 | + ), |
|
49 | 50 | ), |
50 | - ), |
|
51 | 51 | ), |
52 | 52 | ), |
53 | 53 | 'Log/Core/Mail' => array( |
54 | 54 | 'writers' => array( |
55 | - array( |
|
56 | - 'name' => 'stream', |
|
55 | + array( |
|
56 | + 'name' => 'stream', |
|
57 | 57 | 'priority' => 1000, |
58 | 58 | 'options' => array( |
59 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
59 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
60 | + ), |
|
60 | 61 | ), |
61 | - ), |
|
62 | 62 | ), |
63 | 63 | ), |
64 | 64 | ), |
@@ -289,12 +289,12 @@ discard block |
||
289 | 289 | ), |
290 | 290 | // Configuration of the controller service manager (Which loads controllers) |
291 | 291 | 'controllers' => array( |
292 | - 'factories' => [ |
|
293 | - 'Core/Index' => LazyControllerFactory::class, |
|
292 | + 'factories' => [ |
|
293 | + 'Core/Index' => LazyControllerFactory::class, |
|
294 | 294 | 'Core/Admin' => AdminControllerFactory::class, |
295 | - 'Core/File' => LazyControllerFactory::class, |
|
295 | + 'Core/File' => LazyControllerFactory::class, |
|
296 | 296 | 'Core/Content' => LazyControllerFactory::class, |
297 | - ], |
|
297 | + ], |
|
298 | 298 | ), |
299 | 299 | // Configuration of the controller plugin service manager |
300 | 300 | 'controller_plugins' => array( |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | 'paginatorservice' => 'Core/PaginatorService', |
325 | 325 | 'paginationParams' => 'Core/PaginationParams', |
326 | 326 | 'searchform' => 'Core/SearchForm', |
327 | - 'notification' => 'Notification', |
|
327 | + 'notification' => 'Notification', |
|
328 | 328 | ) |
329 | 329 | ), |
330 | 330 | // Configure the view service manager |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | ), |
423 | 423 | 'aliases' => [ |
424 | 424 | 'snippet' => \Core\View\Helper\Snippet::class, |
425 | - 'ajaxUrl' => \Core\View\Helper\AjaxUrl::class, |
|
425 | + 'ajaxUrl' => \Core\View\Helper\AjaxUrl::class, |
|
426 | 426 | 'proxy' => \Core\View\Helper\Proxy::class, |
427 | 427 | 'form_element' => 'formElement', |
428 | 428 | ], |
@@ -520,17 +520,17 @@ discard block |
||
520 | 520 | ], |
521 | 521 | |
522 | 522 | 'Core/Ajax/Events' => [ |
523 | - 'service' => 'Core/EventManager', |
|
524 | - 'event' => \Core\Listener\Events\AjaxEvent::class, |
|
523 | + 'service' => 'Core/EventManager', |
|
524 | + 'event' => \Core\Listener\Events\AjaxEvent::class, |
|
525 | 525 | ], |
526 | 526 | |
527 | - 'Core/File/Events' => [ |
|
528 | - 'service' => 'Core/EventManager', |
|
529 | - 'event' => \Core\Listener\Events\FileEvent::class, |
|
527 | + 'Core/File/Events' => [ |
|
528 | + 'service' => 'Core/EventManager', |
|
529 | + 'event' => \Core\Listener\Events\FileEvent::class, |
|
530 | 530 | 'listeners' => [ |
531 | 531 | \Core\Listener\DeleteImageSetListener::class => [\Core\Listener\Events\FileEvent::EVENT_DELETE, -1000], |
532 | 532 | ], |
533 | - ] |
|
533 | + ] |
|
534 | 534 | ], |
535 | 535 | |
536 | 536 | ); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | use Core\Factory\Controller\LazyControllerFactory; |
18 | 18 | use Zend\I18n\Translator\Resources; |
19 | 19 | |
20 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
20 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
21 | 21 | |
22 | 22 | |
23 | 23 | return array( |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | 'doctrine' => $doctrineConfig, |
26 | 26 | |
27 | 27 | 'options' => [ |
28 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
28 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
29 | 29 | ], |
30 | 30 | |
31 | 31 | 'Core' => array( |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'name' => 'stream', |
46 | 46 | 'priority' => 1000, |
47 | 47 | 'options' => array( |
48 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
48 | + 'stream' => __DIR__.'/../../../log/yawik.log', |
|
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | ), |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'name' => 'stream', |
57 | 57 | 'priority' => 1000, |
58 | 58 | 'options' => array( |
59 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
59 | + 'stream' => __DIR__.'/../../../log/mails.log', |
|
60 | 60 | ), |
61 | 61 | ), |
62 | 62 | ), |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
74 | 74 | 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
75 | 75 | 'strict' => true, // bool = cause immediate death|int = matched against error severity |
76 | - 'log' => __DIR__ . '/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
76 | + 'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
77 | 77 | 'email' => null, // in production mode notifies the recipient |
78 | 78 | 'email_snooze' => 900 // interval for sending email in seconds |
79 | 79 | ], |
@@ -218,16 +218,16 @@ discard block |
||
218 | 218 | 'Core/JsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
219 | 219 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
220 | 220 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
221 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
222 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
223 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
224 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
221 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
222 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
223 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
224 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
225 | 225 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
226 | 226 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
227 | 227 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
228 | 228 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
229 | 229 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
230 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
230 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
231 | 231 | ), |
232 | 232 | 'abstract_factories' => array( |
233 | 233 | 'Core\Factory\OptionsAbstractFactory', |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | 'translation_file_patterns' => array( |
251 | 251 | [ |
252 | 252 | 'type' => 'gettext', |
253 | - 'base_dir' => __DIR__ . '/../language', |
|
253 | + 'base_dir' => __DIR__.'/../language', |
|
254 | 254 | 'pattern' => '%s.mo', |
255 | 255 | ], |
256 | 256 | [ |
@@ -305,9 +305,9 @@ discard block |
||
305 | 305 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
306 | 306 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
307 | 307 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
308 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
309 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
310 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
308 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
309 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
310 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
311 | 311 | ), |
312 | 312 | 'invokables' => array( |
313 | 313 | 'Core/FileSender' => 'Core\Controller\Plugin\FileSender', |
@@ -337,32 +337,32 @@ discard block |
||
337 | 337 | 'exception_template' => 'error/index', |
338 | 338 | // Map template to files. Speeds up the lookup through the template stack. |
339 | 339 | 'template_map' => array( |
340 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
341 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
342 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
343 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
344 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
345 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
346 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
347 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
348 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
349 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
350 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
351 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
352 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
353 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
354 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
355 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
356 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
357 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
358 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
359 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
360 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
340 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
341 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
342 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
343 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
344 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
345 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
346 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
347 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
348 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
349 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
350 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
351 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
352 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
353 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
354 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
355 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
356 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
357 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
358 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
359 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
360 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
361 | 361 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
362 | 362 | ), |
363 | 363 | // Where to look for view templates not mapped above |
364 | 364 | 'template_path_stack' => array( |
365 | - __DIR__ . '/../view', |
|
365 | + __DIR__.'/../view', |
|
366 | 366 | ), |
367 | 367 | ), |
368 | 368 | 'view_helpers' => array( |