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