|
@@ -37,7 +37,7 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
*/ |
|
38
|
38
|
public static function configureContainer(LimoncelloContainerInterface $container) |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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] ?? []; |
Please login to merge, or discard this patch.