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)) 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); }