Skip to content

Commit

Permalink
Merge pull request #2654 from acrobat/fixed-incorrect-method-call
Browse files Browse the repository at this point in the history
[GeneratorBundle] getParameter should be called on the controller class
  • Loading branch information
acrobat authored Mar 24, 2020
2 parents 5d8fca1 + 6bf0142 commit be679c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit be679c8

Please sign in to comment.