@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | $container->setShared( |
21 | 21 | 'session', |
22 | - function () use ($config) { |
|
22 | + function() use ($config) { |
|
23 | 23 | $backOptions = [ |
24 | 24 | 'servers' => [ |
25 | 25 | 0 => [ |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | $container->setShared( |
24 | 24 | 'modelsMetadata', |
25 | - function () use ($config) { |
|
25 | + function() use ($config) { |
|
26 | 26 | if (strtolower($config->app->env) != Flags::PRODUCTION) { |
27 | 27 | return new MemoryMetaDataAdapter(); |
28 | 28 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | $container->setShared( |
29 | 29 | 'log', |
30 | - function () use ($config) { |
|
30 | + function() use ($config) { |
|
31 | 31 | /** @var string $logName */ |
32 | 32 | $logName = envValue('LOGGER_DEFAULT_FILENAME', 'api.log'); |
33 | 33 | /** @var string $logPath */ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | $container->setShared( |
21 | 21 | 'acl', |
22 | - function () use ($db) { |
|
22 | + function() use ($db) { |
|
23 | 23 | $acl = new AclManager( |
24 | 24 | [ |
25 | 25 | 'db' => $db, |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $container->setShared( |
20 | 20 | 'config', |
21 | - function () { |
|
21 | + function() { |
|
22 | 22 | $data = require appPath('library/Core/config.php'); |
23 | 23 | |
24 | 24 | return new Config($data); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $container->setShared( |
20 | 20 | 'socialLogin', |
21 | - function () use ($config) { |
|
21 | + function() use ($config) { |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @todo Change the way provider information is handled |
@@ -21,14 +21,14 @@ |
||
21 | 21 | { |
22 | 22 | $container->setShared( |
23 | 23 | 'db', |
24 | - function () { |
|
24 | + function() { |
|
25 | 25 | $options = [ |
26 | 26 | 'host' => envValue('DATA_API_MYSQL_HOST', 'localhost'), |
27 | 27 | 'username' => envValue('DATA_API_MYSQL_USER', 'nanobox'), |
28 | 28 | 'password' => envValue('DATA_API_MYSQL_PASS', ''), |
29 | 29 | 'dbname' => envValue('DATA_API_MYSQL_NAME', 'gonano'), |
30 | 30 | 'charset' => 'utf8', |
31 | - "options" => [ PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING ] |
|
31 | + "options" => [PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING] |
|
32 | 32 | ]; |
33 | 33 | |
34 | 34 | try { |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | //configure the dto config |
20 | 20 | $container->setShared( |
21 | 21 | 'dtoConfig', |
22 | - function () { |
|
22 | + function() { |
|
23 | 23 | $config = new AutoMapperConfig(); |
24 | 24 | $config->getOptions()->dontSkipConstructor(); |
25 | 25 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | //configure the dto mapper |
31 | 31 | $container->set( |
32 | 32 | 'mapper', |
33 | - function () use ($container) { |
|
33 | + function() use ($container) { |
|
34 | 34 | return new AutoMapper($container->get('dtoConfig')); |
35 | 35 | } |
36 | 36 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $config = $container->getShared('config'); |
22 | 22 | |
23 | - $container->setShared('throttler', function () use ($container,$config) { |
|
23 | + $container->setShared('throttler', function() use ($container, $config) { |
|
24 | 24 | return new RedisThrottler($container->getShared('redis'), [ |
25 | 25 | 'bucket_size' => $config->throttle->bucketSize, |
26 | 26 | 'refill_time' => $config->throttle->refillTime, |