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