Closed Dexter0015 closed 3 years ago
Hi,
Can you add these few lines in the 'ControllersTrait.php' file:
/ **
* {@inheritdoc}
* /
public function getParameter(string $name) {
return parent::getParameter($name);
}
This will be fixed in the next version.
PS: Can you now ask your questions in English to respect the current uses on github?
Best regards
Thanks,
Unfortunately it didn't work, BUT I manage to make it work by changing the accessibility of the getParameter() method to public in AbstractController.php file.
Though I find it odd to change the core files of the symfony bundle...
P.S. : I updated my question, sorry for that.
Regards
Indeed it is a very bad idea to modify AbstractController.php.
It is better to add these lines in BaseController.php and BaseAdminController.php
/ **
* {@inheritdoc}
* /
public function getParameter(string $name) {
return parent::getParameter($name);
}
I did the correction (revert my modification of the symfony bundle file and add this method to the correct controller) and it worked.
Add to add the method in ApiController.php too to avoid having the exception when requesting the API.
Hi,
After having installed g6k and the simulator "coût du certification d'immatriculation", I encouter the following issue:
THe exception is displayed even in front or admin.
For information, I already have an older version of the API (Symfony 2 version) which is working on the same server. For this new installation, I created a neaw vhost, et a new database with associated user. The database is not called "cout_certificat_immatriculation", but "cout_immat" (to avoid overwriting the datas of the current running version).
The database connexion is ok, I was able to test it without any issue et btw, the datas are visible when I go to data source in the admin.
So I'm wondering is the issue isn't the link between the simulator and the data source. Where can I find this without using the admin as I can't load the simulator in it? Maybe through an xml file somewhere in the sources?