From 276dd9abd846d32dbc73d8f195a87055e8981cc4 Mon Sep 17 00:00:00 2001 From: Pablo Ogando Ferreira Date: Mon, 9 Oct 2023 13:14:04 +0200 Subject: [PATCH] Use kernel.default_locale instead of custom locale definition --- DependencyInjection/PumukitYoutubeExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/PumukitYoutubeExtension.php b/DependencyInjection/PumukitYoutubeExtension.php index 8239857..62b744e 100644 --- a/DependencyInjection/PumukitYoutubeExtension.php +++ b/DependencyInjection/PumukitYoutubeExtension.php @@ -30,7 +30,7 @@ public function prepend(ContainerBuilder $container) public function load(array $configs, ContainerBuilder $container): void { - $configuration = new Configuration($container->getParameter('locale')); + $configuration = new Configuration($container->getParameter('kernel.default_locale')); $config = $this->processConfiguration($configuration, $configs); $container->setParameter('pumukit_youtube.playlist_privacy_status', $config['playlist_privacy_status']); @@ -78,6 +78,6 @@ public function load(array $configs, ContainerBuilder $container): void public function getConfiguration(array $config, ContainerBuilder $container): Configuration { - return new Configuration($container->getParameter('locale')); + return new Configuration($container->getParameter('kernel.default_locale')); } }