|
@@ 140-145 (lines=6) @@
|
| 137 |
|
->setArguments([new Reference($cacheServiceId), $cacheLifetime, $config['cache_precision']]); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
if (isset($config['limit'])) { |
| 141 |
|
$plugins[] = $providerServiceId.'.limit'; |
| 142 |
|
$container->register($providerServiceId.'.limit', LimitPlugin::class) |
| 143 |
|
->setPublic(false) |
| 144 |
|
->setArguments([(int) $config['limit']]); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
if (isset($config['locale'])) { |
| 148 |
|
$plugins[] = $providerServiceId.'.locale'; |
|
@@ 147-152 (lines=6) @@
|
| 144 |
|
->setArguments([(int) $config['limit']]); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
if (isset($config['locale'])) { |
| 148 |
|
$plugins[] = $providerServiceId.'.locale'; |
| 149 |
|
$container->register($providerServiceId.'.locale', LocalePlugin::class) |
| 150 |
|
->setPublic(false) |
| 151 |
|
->setArguments([$config['locale']]); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
if (isset($config['logger'])) { |
| 155 |
|
$plugins[] = $providerServiceId.'.logger'; |
|
@@ 154-159 (lines=6) @@
|
| 151 |
|
->setArguments([$config['locale']]); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
if (isset($config['logger'])) { |
| 155 |
|
$plugins[] = $providerServiceId.'.logger'; |
| 156 |
|
$container->register($providerServiceId.'.logger', LoggerPlugin::class) |
| 157 |
|
->setPublic(false) |
| 158 |
|
->setArguments([new Reference($config['logger'])]); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
if ($container->has(FakeIpPlugin::class)) { |
| 162 |
|
$plugins[] = FakeIpPlugin::class; |