@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 45 | 45 | { |
| 46 | - $container[LoggerInterface::class] = function (PsrContainerInterface $container) { |
|
| 46 | + $container[LoggerInterface::class] = function(PsrContainerInterface $container) { |
|
| 47 | 47 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 48 | 48 | $appSettings = $settingsProvider->get(A::class); |
| 49 | 49 | $monologSettings = $settingsProvider->get(C::class); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 35 | 35 | { |
| 36 | - $container[PDO::class] = function (PsrContainerInterface $container) { |
|
| 36 | + $container[PDO::class] = function(PsrContainerInterface $container) { |
|
| 37 | 37 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
| 38 | 38 | $database = new PDO( |
| 39 | 39 | $settings[C::KEY_CONNECTION_STRING], |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 33 | 33 | { |
| 34 | - $container[FileSystemInterface::class] = function () { |
|
| 34 | + $container[FileSystemInterface::class] = function() { |
|
| 35 | 35 | return new FileSystem(); |
| 36 | 36 | }; |
| 37 | 37 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 37 | 37 | { |
| 38 | - $container[AuthorizationManagerInterface::class] = function (PsrContainerInterface $container) { |
|
| 38 | + $container[AuthorizationManagerInterface::class] = function(PsrContainerInterface $container) { |
|
| 39 | 39 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 40 | 40 | $settings = $settingsProvider->get(S::class); |
| 41 | 41 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 39 | 39 | { |
| 40 | - $container[ModelSchemeInfoInterface::class] = function (PsrContainerInterface $container) { |
|
| 40 | + $container[ModelSchemeInfoInterface::class] = function(PsrContainerInterface $container) { |
|
| 41 | 41 | $settings = $container->get(SettingsProviderInterface::class)->get(DataSettings::class); |
| 42 | 42 | $data = $settings[DataSettings::KEY_MODELS_SCHEME_INFO]; |
| 43 | 43 | $schemes = new ModelSchemeInfo(); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | return $schemes; |
| 47 | 47 | }; |
| 48 | 48 | |
| 49 | - $container[Connection::class] = function (PsrContainerInterface $container) { |
|
| 49 | + $container[Connection::class] = function(PsrContainerInterface $container) { |
|
| 50 | 50 | $settings = $container->get(SettingsProviderInterface::class)->get(DoctrineSettings::class); |
| 51 | 51 | $params = array_filter([ |
| 52 | 52 | 'driver' => $settings[DoctrineSettings::KEY_DRIVER] ?? null, |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | 'memory' => $settings[DoctrineSettings::KEY_MEMORY] ?? null, |
| 60 | 60 | 'path' => $settings[DoctrineSettings::KEY_PATH] ?? null, |
| 61 | 61 | 'charset' => $settings[DoctrineSettings::KEY_CHARSET] ?? 'UTF8', |
| 62 | - ], function ($value) { |
|
| 62 | + ], function($value) { |
|
| 63 | 63 | return $value !== null; |
| 64 | 64 | }); |
| 65 | 65 | $extra = $settings[DoctrineSettings::KEY_EXTRA] ?? []; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 42 | 42 | { |
| 43 | - $container[AnalyzerInterface::class] = function (PsrContainerInterface $container) { |
|
| 43 | + $container[AnalyzerInterface::class] = function(PsrContainerInterface $container) { |
|
| 44 | 44 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 45 | 45 | $appSettings = $settingsProvider->get(A::class); |
| 46 | 46 | $corsSettings = $settingsProvider->get(C::class); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | return $analyzer; |
| 55 | 55 | }; |
| 56 | 56 | |
| 57 | - $container[CorsStorageInterface::class] = function () { |
|
| 57 | + $container[CorsStorageInterface::class] = function() { |
|
| 58 | 58 | return new CorsStorage(); |
| 59 | 59 | }; |
| 60 | 60 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 39 | 39 | { |
| 40 | - $container[CommandStorageInterface::class] = function (PsrContainerInterface $container) { |
|
| 40 | + $container[CommandStorageInterface::class] = function(PsrContainerInterface $container) { |
|
| 41 | 41 | $creator = new class |
| 42 | 42 | { |
| 43 | 43 | use ClassIsTrait; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 39 | 39 | { |
| 40 | - $container[FormatterFactoryInterface::class] = function (PsrContainerInterface $container) { |
|
| 40 | + $container[FormatterFactoryInterface::class] = function(PsrContainerInterface $container) { |
|
| 41 | 41 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 42 | 42 | $settings = $settingsProvider->get(S::class); |
| 43 | 43 | |