@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class ServiceProvider |
58 | 58 | * @package Platine\Framework\Service |
59 | 59 | */ |
60 | -class ServiceProvider |
|
61 | -{ |
|
60 | +class ServiceProvider { |
|
62 | 61 | /** |
63 | 62 | * The Application instance |
64 | 63 | * @var Application |
@@ -75,8 +74,7 @@ discard block |
||
75 | 74 | * Create new instance |
76 | 75 | * @param Application $app |
77 | 76 | */ |
78 | - public function __construct(Application $app) |
|
79 | - { |
|
77 | + public function __construct(Application $app) { |
|
80 | 78 | $this->app = $app; |
81 | 79 | } |
82 | 80 |
@@ -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 | */ |
@@ -64,8 +64,7 @@ |
||
64 | 64 | * @class MigrationServiceProvider |
65 | 65 | * @package Platine\Framework\Service\Provider |
66 | 66 | */ |
67 | -class MigrationServiceProvider extends ServiceProvider |
|
68 | -{ |
|
67 | +class MigrationServiceProvider extends ServiceProvider { |
|
69 | 68 | /** |
70 | 69 | * {@inheritdoc} |
71 | 70 | */ |
@@ -61,8 +61,7 @@ |
||
61 | 61 | * @class TemplateServiceProvider |
62 | 62 | * @package Platine\Framework\Service\Provider |
63 | 63 | */ |
64 | -class TemplateServiceProvider extends ServiceProvider |
|
65 | -{ |
|
64 | +class TemplateServiceProvider extends ServiceProvider { |
|
66 | 65 | /** |
67 | 66 | * {@inheritdoc} |
68 | 67 | */ |
@@ -70,7 +70,7 @@ |
||
70 | 70 | { |
71 | 71 | $config = $this->app->get(Config::class)->get('template', []); |
72 | 72 | |
73 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($config) { |
|
73 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($config) { |
|
74 | 74 | return new Configuration($config); |
75 | 75 | }); |
76 | 76 | $this->app->bind(AbstractCache::class, $config['cache_driver'] ?? NullCache::class); |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class SecurityServiceProvider |
56 | 56 | * @package Platine\Framework\Service\Provider |
57 | 57 | */ |
58 | -class SecurityServiceProvider extends ServiceProvider |
|
59 | -{ |
|
58 | +class SecurityServiceProvider extends ServiceProvider { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function register(): void |
69 | 69 | { |
70 | - $this->app->bind(SecurityPolicy::class, function (ContainerInterface $app) { |
|
70 | + $this->app->bind(SecurityPolicy::class, function(ContainerInterface $app) { |
|
71 | 71 | return new SecurityPolicy( |
72 | 72 | $app->get(Config::class), |
73 | 73 | $app->get(Router::class), |
@@ -60,8 +60,7 @@ |
||
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,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) |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class RoutingServiceProvider |
57 | 57 | * @package Platine\Framework\Service\Provider |
58 | 58 | */ |
59 | -class RoutingServiceProvider extends ServiceProvider |
|
60 | -{ |
|
59 | +class RoutingServiceProvider extends ServiceProvider { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class CommandServiceProvider |
58 | 58 | * @package Platine\Framework\Service\Provider |
59 | 59 | */ |
60 | -class CommandServiceProvider extends ServiceProvider |
|
61 | -{ |
|
60 | +class CommandServiceProvider extends ServiceProvider { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -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 | */ |