diff --git a/config/services.yml b/config/services.yml new file mode 100644 index 0000000..8fbf795 --- /dev/null +++ b/config/services.yml @@ -0,0 +1,4 @@ +services: + Pcm\GeocodeBundle\Service\Geocoder: + autowire: true + public: true \ No newline at end of file diff --git a/tests/AppKernel.php b/tests/AppKernel.php index c9f30d4..3f2020e 100644 --- a/tests/AppKernel.php +++ b/tests/AppKernel.php @@ -28,8 +28,6 @@ class AppKernel extends Kernel */ public function registerContainerConfiguration(LoaderInterface $loader): void { - $loader->load(function (ContainerBuilder $container) { - $container->prependExtensionConfig('framework', ['test' => true]); - }); + $loader->load(__DIR__.'/config_'.$this->getEnvironment().'.yml'); } } \ No newline at end of file