@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $container->setShared( |
| 19 | 19 | 'app', |
| 20 | - function () use ($config) { |
|
| 20 | + function() use ($config) { |
|
| 21 | 21 | return Apps::findFirst($config->app->id); |
| 22 | 22 | } |
| 23 | 23 | ); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $container->setShared( |
| 19 | 19 | 'elastic', |
| 20 | - function () use ($config) { |
|
| 20 | + function() use ($config) { |
|
| 21 | 21 | $hosts = $config->elasticSearch->hosts->toArray(); |
| 22 | 22 | |
| 23 | 23 | $client = ClientBuilder::create() |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $container->setShared( |
| 19 | 19 | 'mail', |
| 20 | - function () use ($config) { |
|
| 20 | + function() use ($config) { |
|
| 21 | 21 | $mailer = new BakaMail($config->email->toArray()); |
| 22 | 22 | return $mailer->createMessage(); |
| 23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $container->setShared( |
| 19 | 19 | 'cache', |
| 20 | - function () { |
|
| 20 | + function() { |
|
| 21 | 21 | $prefix = 'data'; |
| 22 | 22 | $frontAdapter = Data::class; |
| 23 | 23 | $frontOptions = [ |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $container->setShared( |
| 19 | 19 | 'pusher', |
| 20 | - function () use ($config) { |
|
| 20 | + function() use ($config) { |
|
| 21 | 21 | return new Pusher($config->pusher->key, $config->pusher->secret, $config->pusher->id, ['cluster' => $config->pusher->cluster, 'useTLS' => true]); |
| 22 | 22 | } |
| 23 | 23 | ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | $container->set( |
| 22 | 22 | 'filesystem', |
| 23 | - function ($filesystem = null) use ($config, $container) { |
|
| 23 | + function($filesystem = null) use ($config, $container) { |
|
| 24 | 24 | //we ened to call it internally to avoid the test failing WTF |
| 25 | 25 | $app = $container->getShared('app'); |
| 26 | 26 | |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | $container->setShared( |
| 21 | 21 | 'manager', |
| 22 | - function () use ($config) { |
|
| 22 | + function() use ($config) { |
|
| 23 | 23 | $manager = new Manager(); |
| 24 | 24 | |
| 25 | - $handlers = $this->providers = require appPath('api/config/handlers.php'); |
|
| 25 | + $handlers = $this->providers = require appPath('api/config/handlers.php'); |
|
| 26 | 26 | |
| 27 | 27 | //Pass Handlers as array |
| 28 | 28 | $manager->setHandlers($handlers); |
@@ -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 | } |