@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $this->setupHardcodedTextcats(); |
32 | 32 | |
33 | - $this->serviceManager->setFactory('db', function () { |
|
33 | + $this->serviceManager->setFactory('db', function() { |
|
34 | 34 | return null; |
35 | 35 | }); |
36 | 36 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $this->setupTwig(); |
44 | 44 | |
45 | 45 | if (HelperConfig::$core["enable_module_shop"]) { |
46 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
46 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
47 | 47 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
48 | 48 | }); |
49 | 49 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | // PSR-7 Stuff |
58 | 58 | // Init request object |
59 | - $this->serviceManager->setFactory('request', function () { |
|
59 | + $this->serviceManager->setFactory('request', function() { |
|
60 | 60 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
61 | 61 | |
62 | 62 | // cleanup request |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // session.use_trans_sid wenn nötig aktivieren |
77 | 77 | ini_set('session.use_only_cookies', 0); |
78 | 78 | session_name('sid'); |
79 | - if(ini_get('session.use_trans_sid') == 1) { |
|
79 | + if (ini_get('session.use_trans_sid') == 1) { |
|
80 | 80 | ini_set('session.use_trans_sid', 0); |
81 | 81 | } |
82 | 82 | // Session wenn nötig starten |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | protected function setupDB() |
122 | 122 | { |
123 | - $this->serviceManager->setFactory('dbal', function () { |
|
123 | + $this->serviceManager->setFactory('dbal', function() { |
|
124 | 124 | $config = new \Doctrine\DBAL\Configuration(); |
125 | 125 | |
126 | 126 | $connectionParams = [ |
@@ -141,14 +141,14 @@ discard block |
||
141 | 141 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
142 | 142 | }); |
143 | 143 | |
144 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
144 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
145 | 145 | return $serviceManager->get('dbal')->getWrappedConnection(); |
146 | 146 | }); |
147 | 147 | } |
148 | 148 | |
149 | 149 | protected function setupTextcats() |
150 | 150 | { |
151 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
151 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
152 | 152 | $langavailable = HelperConfig::$core["lang_available"]; |
153 | 153 | $textcats = new \HaaseIT\Toolbox\Textcat( |
154 | 154 | HelperConfig::$lang, |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | protected function setupTwig() |
167 | 167 | { |
168 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
168 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
169 | 169 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
170 | 170 | |
171 | 171 | $twig_options = [ |