From 6bf0142223101f4c68aceb344b27b6d57dce4ba6 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sun, 22 Mar 2020 17:13:08 +0100 Subject: [PATCH 1/2] [GeneratorBundle] getParameter should be called on the controller class --- .../skeleton/defaultsite/Controller/DefaultController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php index 4ea1dedfaf..10ffc34559 100755 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php @@ -32,7 +32,7 @@ public function indexAction(Request $request) private function getLocale(Request $request) { $locales = array_filter( - explode('|', $this->container->getParameter('requiredlocales')) + explode('|', $this->getParameter('requiredlocales')) ); return $request->getPreferredLanguage($locales); } From 0439a8064c12c66f760a7813e4dafc3957484f34 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Tue, 24 Mar 2020 21:51:46 +0100 Subject: [PATCH 2/2] Update changelog for 5.5.2 release --- CHANGELOG-5.X.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG-5.X.md b/CHANGELOG-5.X.md index 9aa18da291..c58cc5ca84 100644 --- a/CHANGELOG-5.X.md +++ b/CHANGELOG-5.X.md @@ -1,5 +1,9 @@ # Changelog +## 5.5.2 / 2020-03-24 + +* [GeneratorBundle] getParameter should be called on the controller class [#2654](https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/2654) ([@acrobat](https://github.com/acrobat)) + ## 5.5.1 / 2020-03-19 * [AdminBundle] Aclvoter should only grant access for supported attributes with disabled permissions [#2653](https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/2653) ([@acrobat](https://github.com/acrobat))