Skip to content

Commit 87891d7

Browse files
authored
Merge pull request #335 from ruano-a/fix/plugin-fakeip-order
load fakeip plugin before cache
2 parents 248712f + 160f0ef commit 87891d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DependencyInjection/BazingaGeocoderExtension.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ public function configureProviderPlugins(ContainerBuilder $container, array $con
133133
}
134134
}
135135

136+
if ($container->has(FakeIpPlugin::class)) {
137+
$plugins[] = FakeIpPlugin::class;
138+
}
139+
136140
if (isset($config['cache']) || isset($config['cache_lifetime']) || isset($config['cache_precision'])) {
137141
$cacheLifetime = isset($config['cache_lifetime']) ? (int) $config['cache_lifetime'] : null;
138142

@@ -169,10 +173,6 @@ public function configureProviderPlugins(ContainerBuilder $container, array $con
169173
->setArguments([new Reference($config['logger'])]);
170174
}
171175

172-
if ($container->has(FakeIpPlugin::class)) {
173-
$plugins[] = FakeIpPlugin::class;
174-
}
175-
176176
if ($container->has(GeocoderDataCollector::class)) {
177177
$plugins[] = $providerServiceId.'.profiler';
178178
$container->register($providerServiceId.'.profiler', ProfilingPlugin::class)

0 commit comments

Comments
 (0)