@@ -10,15 +10,15 @@ |
||
| 10 | 10 | $container = $app->getContainer(); |
| 11 | 11 | |
| 12 | 12 | $container[Controller::class] = function (ContainerInterface $c) { |
| 13 | - return new Controller($c, $c->get(Handler::class)); |
|
| 13 | + return new Controller($c, $c->get(Handler::class)); |
|
| 14 | 14 | }; |
| 15 | 15 | |
| 16 | 16 | $container[Handler::class] = function (ContainerInterface $c) { |
| 17 | - return new Handler($c, $c->get(Executor::class)); |
|
| 17 | + return new Handler($c, $c->get(Executor::class)); |
|
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | 20 | $container[Executor::class] = function (ContainerInterface $c) { |
| 21 | - return new Executor($c); |
|
| 21 | + return new Executor($c); |
|
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // monolog |
@@ -9,20 +9,20 @@ |
||
| 9 | 9 | |
| 10 | 10 | $container = $app->getContainer(); |
| 11 | 11 | |
| 12 | -$container[Controller::class] = function (ContainerInterface $c) { |
|
| 12 | +$container[Controller::class] = function(ContainerInterface $c) { |
|
| 13 | 13 | return new Controller($c, $c->get(Handler::class)); |
| 14 | 14 | }; |
| 15 | 15 | |
| 16 | -$container[Handler::class] = function (ContainerInterface $c) { |
|
| 16 | +$container[Handler::class] = function(ContainerInterface $c) { |
|
| 17 | 17 | return new Handler($c, $c->get(Executor::class)); |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | -$container[Executor::class] = function (ContainerInterface $c) { |
|
| 20 | +$container[Executor::class] = function(ContainerInterface $c) { |
|
| 21 | 21 | return new Executor($c); |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // monolog |
| 25 | -$container['logger'] = function (ContainerInterface $c) { |
|
| 25 | +$container['logger'] = function(ContainerInterface $c) { |
|
| 26 | 26 | $settings = $c->get('settings')['logger']; |
| 27 | 27 | $logger = new Monolog\Logger($settings['name']); |
| 28 | 28 | $logger->pushProcessor(new Monolog\Processor\UidProcessor()); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $reader = ConfigFactory::getReaderPluginManager()->get('yaml'); |
| 29 | 29 | $reader->setYamlDecoder([new YamlParser(), 'parse']); |
| 30 | 30 | if ( ! defined('CONFIG_DIR')) { |
| 31 | - define('CONFIG_DIR', __DIR__ . '/../config'); |
|
| 31 | + define('CONFIG_DIR', __DIR__ . '/../config'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $config = ConfigFactory::fromFiles([CONFIG_DIR . '/global.yaml', CONFIG_DIR . '/local.yaml']); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | ConfigFactory::registerReader('yml', 'yaml'); |
| 26 | 26 | |
| 27 | 27 | // Adding the parser to the reader |
| 28 | -$reader = ConfigFactory::getReaderPluginManager()->get('yaml'); |
|
| 28 | +$reader = ConfigFactory::getReaderPluginManager()->get('yaml'); |
|
| 29 | 29 | $reader->setYamlDecoder([new YamlParser(), 'parse']); |
| 30 | 30 | if ( ! defined('CONFIG_DIR')) { |
| 31 | 31 | define('CONFIG_DIR', __DIR__ . '/../config'); |