diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php index 7b7bbc1f18..5d4bb7e857 100644 --- a/src/AppBundle/Controller/DefaultController.php +++ b/src/AppBundle/Controller/DefaultController.php @@ -15,7 +15,7 @@ public function indexAction(Request $request) { // replace this example code with whatever you need return $this->render('default/index.html.twig', [ - 'base_dir' => realpath($this->container->getParameter('kernel.root_dir').'/..'), + 'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'), ]); } }