@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class CookieServiceProvider |
57 | 57 | * @package Platine\Framework\Service\Provider |
58 | 58 | */ |
59 | -class CookieServiceProvider extends ServiceProvider |
|
60 | -{ |
|
59 | +class CookieServiceProvider extends ServiceProvider { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -66,11 +66,11 @@ |
||
66 | 66 | */ |
67 | 67 | public function register(): void |
68 | 68 | { |
69 | - $this->app->bind(ErrorHandlerInterface::class, function (ContainerInterface $app) { |
|
69 | + $this->app->bind(ErrorHandlerInterface::class, function(ContainerInterface $app) { |
|
70 | 70 | return new ErrorHandler($app->get(LoggerInterface::class)); |
71 | 71 | }); |
72 | 72 | |
73 | - $this->app->bind(ErrorHandlerMiddleware::class, function (ContainerInterface $app) { |
|
73 | + $this->app->bind(ErrorHandlerMiddleware::class, function(ContainerInterface $app) { |
|
74 | 74 | return new ErrorHandlerMiddleware( |
75 | 75 | $app->get(Config::class)->get('app.debug', false), |
76 | 76 | $app->get(LoggerInterface::class) |
@@ -59,18 +59,17 @@ |
||
59 | 59 | * @class ErrorHandlerServiceProvider |
60 | 60 | * @package Platine\Framework\Service\Provider |
61 | 61 | */ |
62 | -class ErrorHandlerServiceProvider extends ServiceProvider |
|
63 | -{ |
|
62 | +class ErrorHandlerServiceProvider extends ServiceProvider { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | */ |
67 | 66 | public function register(): void |
68 | 67 | { |
69 | - $this->app->bind(ErrorHandlerInterface::class, function (ContainerInterface $app) { |
|
68 | + $this->app->bind(ErrorHandlerInterface::class, function (ContainerInterface $app) { |
|
70 | 69 | return new ErrorHandler($app->get(LoggerInterface::class)); |
71 | 70 | }); |
72 | 71 | |
73 | - $this->app->bind(ErrorHandlerMiddleware::class, function (ContainerInterface $app) { |
|
72 | + $this->app->bind(ErrorHandlerMiddleware::class, function (ContainerInterface $app) { |
|
74 | 73 | return new ErrorHandlerMiddleware( |
75 | 74 | $app->get(Config::class)->get('app.debug', false), |
76 | 75 | $app->get(LoggerInterface::class) |
@@ -68,10 +68,10 @@ |
||
68 | 68 | public function register(): void |
69 | 69 | { |
70 | 70 | $cfg = $this->app->get(Config::class)->get('session', []); |
71 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) { |
|
71 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($cfg) { |
|
72 | 72 | return new Configuration($cfg); |
73 | 73 | }); |
74 | - $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) { |
|
74 | + $this->app->bind(SessionHandlerInterface::class, function(ContainerInterface $app) { |
|
75 | 75 | return new LocalStorage( |
76 | 76 | $app->get(Filesystem::class), |
77 | 77 | $app->get(Configuration::class) |
@@ -60,18 +60,17 @@ |
||
60 | 60 | * @class SessionServiceProvider |
61 | 61 | * @package Platine\Framework\Service\Provider |
62 | 62 | */ |
63 | -class SessionServiceProvider extends ServiceProvider |
|
64 | -{ |
|
63 | +class SessionServiceProvider extends ServiceProvider { |
|
65 | 64 | /** |
66 | 65 | * {@inheritdoc} |
67 | 66 | */ |
68 | 67 | public function register(): void |
69 | 68 | { |
70 | 69 | $cfg = $this->app->get(Config::class)->get('session', []); |
71 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) { |
|
70 | + $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) { |
|
72 | 71 | return new Configuration($cfg); |
73 | 72 | }); |
74 | - $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) { |
|
73 | + $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) { |
|
75 | 74 | return new LocalStorage( |
76 | 75 | $app->get(Filesystem::class), |
77 | 76 | $app->get(Configuration::class) |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @class ApiAuthServiceProvider |
63 | 63 | * @package Platine\Framework\Service\Provider |
64 | 64 | */ |
65 | -class ApiAuthServiceProvider extends ServiceProvider |
|
66 | -{ |
|
65 | +class ApiAuthServiceProvider extends ServiceProvider { |
|
67 | 66 | /** |
68 | 67 | * {@inheritdoc} |
69 | 68 | */ |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class SchedulerServiceProvider |
58 | 58 | * @package Platine\Framework\Service\Provider |
59 | 59 | */ |
60 | -class SchedulerServiceProvider extends ServiceProvider |
|
61 | -{ |
|
60 | +class SchedulerServiceProvider extends ServiceProvider { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class EventServiceProvider |
58 | 58 | * @package Platine\Framework\Service\Provider |
59 | 59 | */ |
60 | -class EventServiceProvider extends ServiceProvider |
|
61 | -{ |
|
60 | +class EventServiceProvider extends ServiceProvider { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function register(): void |
72 | 72 | { |
73 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
73 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
74 | 74 | return new Configuration($app->get(Config::class)->get('cache', [])); |
75 | 75 | }); |
76 | 76 | $this->app->bind(AdapterInterface::class, LocalAdapter::class); |
@@ -63,14 +63,13 @@ |
||
63 | 63 | * @class CacheServiceProvider |
64 | 64 | * @package Platine\Framework\Service\Provider |
65 | 65 | */ |
66 | -class CacheServiceProvider extends ServiceProvider |
|
67 | -{ |
|
66 | +class CacheServiceProvider extends ServiceProvider { |
|
68 | 67 | /** |
69 | 68 | * {@inheritdoc} |
70 | 69 | */ |
71 | 70 | public function register(): void |
72 | 71 | { |
73 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
72 | + $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
74 | 73 | return new Configuration($app->get(Config::class)->get('cache', [])); |
75 | 74 | }); |
76 | 75 | $this->app->bind(AdapterInterface::class, LocalAdapter::class); |
@@ -70,8 +70,7 @@ |
||
70 | 70 | * @class CommandServiceProvider |
71 | 71 | * @package Platine\Framework\Service\Provider |
72 | 72 | */ |
73 | -class CommandServiceProvider extends ServiceProvider |
|
74 | -{ |
|
73 | +class CommandServiceProvider extends ServiceProvider { |
|
75 | 74 | /** |
76 | 75 | * {@inheritdoc} |
77 | 76 | */ |
@@ -66,7 +66,7 @@ |
||
66 | 66 | */ |
67 | 67 | public function register(): void |
68 | 68 | { |
69 | - $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) { |
|
69 | + $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) { |
|
70 | 70 | $cfg = new LoggerConfiguration( |
71 | 71 | $app->get(Config::class)->get('logging', []) |
72 | 72 | ); |
@@ -59,14 +59,13 @@ |
||
59 | 59 | * @class LoggerServiceProvider |
60 | 60 | * @package Platine\Framework\Service\Provider |
61 | 61 | */ |
62 | -class LoggerServiceProvider extends ServiceProvider |
|
63 | -{ |
|
62 | +class LoggerServiceProvider extends ServiceProvider { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | */ |
67 | 66 | public function register(): void |
68 | 67 | { |
69 | - $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) { |
|
68 | + $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) { |
|
70 | 69 | $cfg = new LoggerConfiguration( |
71 | 70 | $app->get(Config::class)->get('logging', []) |
72 | 71 | ); |