|
@@ 118-123 (lines=6) @@
|
| 115 |
|
->setArguments([new Reference($cacheServiceId), (int) $config['cache_lifetime']]); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
if (isset($config['limit'])) { |
| 119 |
|
$plugins[] = $providerServiceId.'.limit'; |
| 120 |
|
$container->register($providerServiceId.'.limit', LimitPlugin::class) |
| 121 |
|
->setPublic(false) |
| 122 |
|
->setArguments([(int) $config['limit']]); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
if (isset($config['locale'])) { |
| 126 |
|
$plugins[] = $providerServiceId.'.locale'; |
|
@@ 125-130 (lines=6) @@
|
| 122 |
|
->setArguments([(int) $config['limit']]); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
if (isset($config['locale'])) { |
| 126 |
|
$plugins[] = $providerServiceId.'.locale'; |
| 127 |
|
$container->register($providerServiceId.'.locale', LocalePlugin::class) |
| 128 |
|
->setPublic(false) |
| 129 |
|
->setArguments([$config['locale']]); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
if (isset($config['logger'])) { |
| 133 |
|
$plugins[] = $providerServiceId.'.logger'; |
|
@@ 132-137 (lines=6) @@
|
| 129 |
|
->setArguments([$config['locale']]); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
if (isset($config['logger'])) { |
| 133 |
|
$plugins[] = $providerServiceId.'.logger'; |
| 134 |
|
$container->register($providerServiceId.'.logger', LoggerPlugin::class) |
| 135 |
|
->setPublic(false) |
| 136 |
|
->setArguments([new Reference($config['logger'])]); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
if ($container->has(FakeIpPlugin::class)) { |
| 140 |
|
$plugins[] = FakeIpPlugin::class; |