I want to change a value of my config.yml I need to change it from my DefaultController.php but I don't know if this is possible (and if it's possible how to do it).
The YAML file
google:
enabled: true # If Google Authenticator should be enabled, default false
server_name: Zioo # Server name used in QR code
issuer: Zioo # Issuer name used in QR code
template: ZPAdminBundle:Authentication:form.html.twig # Template used to render the authentication form
I need to change "enabled" to false from the defaultcontroller when A user doesn't want to use this option.