I downloaded the latest stable version of Symfony (3.3.3), and on startup I have an error:
Attempted to call an undefined method named "getParameter" of class "AppBundle\Controller\DefaultController".
It:
'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
Prior to version 3.3.3, extended Symfony controllers
Symfony \ Bundle \ FrameworkBundle \ Controller \ Controller.php
Now proceeds:
Symfony \ Bundle \ FrameworkBundle \ Controller \ AbstractController \ AbstractController.php
So ... How can I get data from the container? In the documentation (versions 3.3 and 4.0), the controller extends Controller, not AbstractController.
If I changed the AbstractController application to the Controller application, fine, but does it need to be changed?
dukki source
share