@@ 129-134 (lines=6) @@ | ||
126 | ->setArguments([new Reference($cacheServiceId), $cacheLifetime, $config['cache_precision']]); |
|
127 | } |
|
128 | ||
129 | if (isset($config['limit'])) { |
|
130 | $plugins[] = $providerServiceId.'.limit'; |
|
131 | $container->register($providerServiceId.'.limit', LimitPlugin::class) |
|
132 | ->setPublic(false) |
|
133 | ->setArguments([(int) $config['limit']]); |
|
134 | } |
|
135 | ||
136 | if (isset($config['locale'])) { |
|
137 | $plugins[] = $providerServiceId.'.locale'; |
|
@@ 136-141 (lines=6) @@ | ||
133 | ->setArguments([(int) $config['limit']]); |
|
134 | } |
|
135 | ||
136 | if (isset($config['locale'])) { |
|
137 | $plugins[] = $providerServiceId.'.locale'; |
|
138 | $container->register($providerServiceId.'.locale', LocalePlugin::class) |
|
139 | ->setPublic(false) |
|
140 | ->setArguments([$config['locale']]); |
|
141 | } |
|
142 | ||
143 | if (isset($config['logger'])) { |
|
144 | $plugins[] = $providerServiceId.'.logger'; |
|
@@ 143-148 (lines=6) @@ | ||
140 | ->setArguments([$config['locale']]); |
|
141 | } |
|
142 | ||
143 | if (isset($config['logger'])) { |
|
144 | $plugins[] = $providerServiceId.'.logger'; |
|
145 | $container->register($providerServiceId.'.logger', LoggerPlugin::class) |
|
146 | ->setPublic(false) |
|
147 | ->setArguments([new Reference($config['logger'])]); |
|
148 | } |
|
149 | ||
150 | if ($container->has(FakeIpPlugin::class)) { |
|
151 | $plugins[] = FakeIpPlugin::class; |