@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | | |
43 | 43 | */ |
44 | 44 | |
45 | -$di->set('error', function () { |
|
45 | +$di->set('error', function() { |
|
46 | 46 | return include_once APPLICATION_PATH."configs/error.php"; |
47 | 47 | }); |
48 | 48 | |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | include_once _if(APPLICATION_PATH."configs", "database.php") |
92 | 92 | ); |
93 | 93 | |
94 | -foreach ($dbConfig->databases as $name => $dbConfig ) { |
|
94 | +foreach ($dbConfig->databases as $name => $dbConfig) { |
|
95 | 95 | $di->set($name, function() use ($dbConfig, $di){ |
96 | 96 | $className = $dbConfig["type"]; |
97 | - $database = new $className($dbConfig["config"]->toArray()); |
|
97 | + $database = new $className($dbConfig["config"]->toArray()); |
|
98 | 98 | $database->connect(); |
99 | 99 | return $database; |
100 | 100 | }); |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | | |
171 | 171 | */ |
172 | 172 | |
173 | -$di->set('assets', function () { |
|
173 | +$di->set('assets', function() { |
|
174 | 174 | $assetManager = new \Phalcon\Assets\Manager(); |
175 | 175 | return $assetManager; |
176 | 176 | }, true); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | */ |
188 | 188 | |
189 | 189 | if (PHP_SAPI !== 'cli') { |
190 | - $di->set('url', function () { |
|
190 | + $di->set('url', function() { |
|
191 | 191 | global $di; |
192 | 192 | $appConfig = $di->get('config'); |
193 | 193 | $url = new \Phalcon\Mvc\Url(); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | | |
209 | 209 | */ |
210 | 210 | |
211 | -$di->set('crypt', function () { |
|
211 | +$di->set('crypt', function() { |
|
212 | 212 | global $di; |
213 | 213 | $appConfig = $di->get('config'); |
214 | 214 | $crypt = new \Phalcon\Crypt(); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | |
284 | 284 | if (PHP_SAPI !== 'cli') { |
285 | 285 | |
286 | - $di->set('router', function () { |
|
286 | + $di->set('router', function() { |
|
287 | 287 | global $di; |
288 | 288 | $appConfig = $di->get('config'); |
289 | 289 | $router = new \Phalcon\Mvc\Router\Annotations(false); |