Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized options "expressions" under "jms_security_extra" #24

Closed
ghost opened this issue Nov 30, 2011 · 8 comments
Closed

Unrecognized options "expressions" under "jms_security_extra" #24

ghost opened this issue Nov 30, 2011 · 8 comments

Comments

@ghost
Copy link

ghost commented Nov 30, 2011

After following the installation instructions, I'm trying to set the expressions option in app/config/config.yml, and when I clear the cache I get this error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "expressions" under "jms_security_extra"

Other options are not working either, such as method_access_control (the one that I need).

@stof
Copy link
Contributor

stof commented Nov 30, 2011

are you using the master branch of the bundle or the old version provided with Symfony 2.0 ?

@ghost
Copy link
Author

ghost commented Nov 30, 2011

uhm... i'm using the Symfony 2.0 version.

how can I use the master branch? maybe must I make some modification in my deps file?

@ghost
Copy link
Author

ghost commented Nov 30, 2011

I have modified the corresponding entry in the deps file:

[JMSSecurityExtraBundle]
    git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
    target=/bundles/JMS/SecurityExtraBundle
    version=origin/master

But still displays the error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]  
  Unrecognized options "expressions" under "jms_security_extra" 

@ghost
Copy link
Author

ghost commented Nov 30, 2011

I have also downloaded the zip file of the master branch, and deleted the Symfony one. I have manually removed the cache.

Still the same problem.

@schmittjoh
Copy link
Owner

Please check what version is in the JMSSecurityExtraBundle.php file.

The expressions key definitely exists:
https://github.com/schmittjoh/JMSSecurityExtraBundle/blob/master/DependencyInjection/Configuration.php#L44

@ghost
Copy link
Author

ghost commented Nov 30, 2011

Ok, the issue was with the bin/vendors script, as I was running it through the "install" option, but instead the correct way is the "update" option. This should be made clearer on the documentation :)

@ghost ghost closed this as completed Nov 30, 2011
@stof
Copy link
Contributor

stof commented Nov 30, 2011

@webnius install will first look in the deps.lock to check if the dependency is locked.

@hd-deman
Copy link

hd-deman commented Jan 9, 2012

same if in deps
[JMSSecurityExtraBundle]
git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
target=/bundles/JMS/SecurityExtraBundle
version=origin/1.0.x
then displays the error:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "expressions" under "jms_security_extra"

but if
[JMSSecurityExtraBundle]
git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
target=/bundles/JMS/SecurityExtraBundle
version=origin/master
then displays the error:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "secure_controllers" under "jms_security_extra"

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants