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