From 63920fa25b3a7bc708446d389de3dea492c2e148 Mon Sep 17 00:00:00 2001 From: Brabli <67018167+Brabli@users.noreply.github.com> Date: Wed, 20 Jul 2022 22:55:32 +0100 Subject: [PATCH] Fix bits --- config/services.yml | 4 ++++ tests/AppKernel.php | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 config/services.yml 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