Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unrecognized option "firewall_name" under "hwi_oauth"

After upgrade of my project to symfony 2.8 I get the following error when I push the code to staging server.

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "firewall_name" under "hwi_oauth" When i remove firewall_name option then I get an error that the option is required.

If someone provide some insight will be much appreciated.

like image 654
razormind Avatar asked Mar 12 '16 18:03

razormind


1 Answers

You get this error now because when You was updating Symfony rest of dependencies was updated also.

This option was renamed to firewall_names to support multiple firewalls in this commit: https://github.com/hwi/HWIOAuthBundle/commit/9bdbc089ddffede12a5b575a441c4e0fa2ee9dd7 and released as part of 0.4.0 version.

Now it's value must be array. Example:

hwi_oauth:
    firewall_names: [secured_area]
like image 165
Paweł Mikołajczuk Avatar answered Sep 24 '22 14:09

Paweł Mikołajczuk