Completed
Push — develop ( f1d4a7...6bec98 )
by Mathias
11:13
created
module/Core/config/module.config.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 use Zend\I18n\Translator\Resources;
17 17
 use Zend\ServiceManager\Factory\InvokableFactory;
18 18
 
19
-$doctrineConfig = include __DIR__ . '/doctrine.config.php';
19
+$doctrineConfig = include __DIR__.'/doctrine.config.php';
20 20
 
21 21
 
22 22
 return array(
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     'doctrine' => $doctrineConfig,
25 25
 
26 26
     'options' => [
27
-        'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ],
27
+        'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'],
28 28
         ],
29 29
     
30 30
     'Core' => array(
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                      'name' => 'stream',
45 45
                     'priority' => 1000,
46 46
                     'options' => array(
47
-                         'stream' => __DIR__ .'/../../../log/yawik.log',
47
+                         'stream' => __DIR__.'/../../../log/yawik.log',
48 48
                     ),
49 49
                  ),
50 50
             ),
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                      'name' => 'stream',
56 56
                     'priority' => 1000,
57 57
                     'options' => array(
58
-                         'stream' => __DIR__ .'/../../../log/mails.log',
58
+                         'stream' => __DIR__.'/../../../log/mails.log',
59 59
                     ),
60 60
                  ),
61 61
             ),
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array
73 73
         'bar' => false, // bool = enabled|Toggle nette diagnostics bar.
74 74
         'strict' => true, // bool = cause immediate death|int = matched against error severity
75
-        'log' => __DIR__ . '/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files)
75
+        'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files)
76 76
         'email' => null, // in production mode notifies the recipient
77 77
         'email_snooze' => 900 // interval for sending email in seconds
78 78
     ],
@@ -199,16 +199,16 @@  discard block
 block discarded – undo
199 199
             'Core/JsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory',
200 200
             'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory',
201 201
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
202
-            'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'],
203
-            'DefaultListeners' => ['Core\Listener\DefaultListener','factory'],
204
-            'templateProviderStrategy'   => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'],
205
-            'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'],
202
+            'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'],
203
+            'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'],
204
+            'templateProviderStrategy'   => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'],
205
+            'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'],
206 206
             'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory',
207 207
             'Core/Locale' => 'Core\I18n\LocaleFactory',
208 208
             \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class,
209 209
             \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class,
210 210
             'Imagine' => \Core\Factory\Service\ImagineFactory::class,
211
-            'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'],
211
+            'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'],
212 212
         ),
213 213
         'abstract_factories' => array(
214 214
             'Core\Factory\OptionsAbstractFactory',
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         'translation_file_patterns' => array(
232 232
             [
233 233
                 'type' => 'gettext',
234
-                'base_dir' => __DIR__ . '/../language',
234
+                'base_dir' => __DIR__.'/../language',
235 235
                 'pattern' => '%s.mo',
236 236
             ],
237 237
             [
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
         ),
270 270
 	    'factories' => [
271 271
 	    	// @TODO: improve this factory
272
-		    'Core\Controller\Index' => [\Core\Controller\IndexController::class,'factory'],
273
-		    'Core/Admin' => [\Core\Controller\AdminController::class,'factory'],
274
-		    'Core\Controller\File'  => [\Core\Controller\FileController::class,'factory'],
272
+		    'Core\Controller\Index' => [\Core\Controller\IndexController::class, 'factory'],
273
+		    'Core/Admin' => [\Core\Controller\AdminController::class, 'factory'],
274
+		    'Core\Controller\File'  => [\Core\Controller\FileController::class, 'factory'],
275 275
 	    ],
276 276
         'abstract_factories' => [
277 277
 	        \Core\Factory\Controller\LazyControllerFactory::class
@@ -286,9 +286,9 @@  discard block
 block discarded – undo
286 286
             'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory',
287 287
             'listquery' => 'Core\Controller\Plugin\ListQuery::factory',
288 288
             'mail' => 'Core\Controller\Plugin\Mail::factory',
289
-            'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'],
290
-            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'],
291
-            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'],
289
+            'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'],
290
+            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'],
291
+            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'],
292 292
         ),
293 293
         'invokables' => array(
294 294
             'Core/FileSender' => 'Core\Controller\Plugin\FileSender',
@@ -318,32 +318,32 @@  discard block
 block discarded – undo
318 318
         'exception_template' => 'error/index',
319 319
         // Map template to files. Speeds up the lookup through the template stack.
320 320
         'template_map' => array(
321
-            'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml',
322
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
323
-            'error/404' => __DIR__ . '/../view/error/404.phtml',
324
-            'error/403' => __DIR__ . '/../view/error/403.phtml',
325
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
326
-            'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml',
327
-            'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml',
328
-            'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml',
329
-            'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml',
330
-            'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml',
331
-            'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml',
332
-            'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml',
333
-            'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml',
334
-            'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml',
335
-            'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml',
336
-            'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml',
337
-            'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml',
338
-            'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml',
339
-            'mail/header' =>  __DIR__ . '/../view/mail/header.phtml',
340
-            'mail/footer' =>  __DIR__ . '/../view/mail/footer.phtml',
341
-            'mail/footer.en' =>  __DIR__ . '/../view/mail/footer.en.phtml',
321
+            'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml',
322
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
323
+            'error/404' => __DIR__.'/../view/error/404.phtml',
324
+            'error/403' => __DIR__.'/../view/error/403.phtml',
325
+            'error/index' => __DIR__.'/../view/error/index.phtml',
326
+            'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml',
327
+            'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml',
328
+            'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml',
329
+            'core/notifications' => __DIR__.'/../view/partial/notifications.phtml',
330
+            'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml',
331
+            'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml',
332
+            'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml',
333
+            'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml',
334
+            'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml',
335
+            'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml',
336
+            'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml',
337
+            'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml',
338
+            'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml',
339
+            'mail/header' =>  __DIR__.'/../view/mail/header.phtml',
340
+            'mail/footer' =>  __DIR__.'/../view/mail/footer.phtml',
341
+            'mail/footer.en' =>  __DIR__.'/../view/mail/footer.en.phtml',
342 342
             //'startpage' => __DIR__ . '/../view/layout/startpage.phtml',
343 343
         ),
344 344
         // Where to look for view templates not mapped above
345 345
         'template_path_stack' => array(
346
-            __DIR__ . '/../view',
346
+            __DIR__.'/../view',
347 347
         ),
348 348
     ),
349 349
     'view_helpers' => array(
Please login to merge, or discard this patch.