security - Symfony2: Unrecognized options "method_access_control" under "jms_security_extra" error -


so i'm trying configure security access of methods here, through jmssecurityextrabundle. followed instructions here : jmssecuritybundle doc.

i ended having in config.yml file:

jms_security_extra:     secure_controllers:  true     secure_all_services: false     method_access_control:         'mybundle:.*:postentitydelete': 'hasrole("role_super_admin")' 

now i'm getting error:

invalidconfigurationexception: unrecognized options "method_access_control" under "jms_security_extra" 

how can have gone wrong on little? where's catch , how solve problem?

thanks in advance!

edit:

deps :

[jmssecurityextrabundle]     git=https://github.com/schmittjoh/jmssecurityextrabundle.git     target=/bundles/jms/securityextrabundle  [metadata]     git=https://github.com/schmittjoh/metadata.git     version=1.1.0 ; <- make sure 1.1, not 1.0  [jmsaopbundle]     git=https://github.com/schmittjoh/jmsaopbundle.git     target=/bundles/jms/aopbundle  [cg-library]     git=https://github.com/schmittjoh/cg-library.git  [jmsdiextrabundle]     git=https://github.com/schmittjoh/jmsdiextrabundle.git     target=/bundles/jms/diextrabundle 

deps.lock:

symfony v2.0.13 twig v1.7.0 monolog 1.0.2 doctrine-common 2.1.4 doctrine-dbal 2.1.6 doctrine 2.1.6 swiftmailer v4.1.7 assetic v1.0.3 twig-extensions 446d870272cd87a720e95242eade38a2acf56eaa metadata 1.0.0 sensioframeworkextrabundle cb61b92ed55241d93ed9726bc3f5f47c7d2ce8fe jmssecurityextrabundle e752f888c51425f71382c056961f10f2be642102 sensiodistributionbundle 20b66a408084ad8752f98e50f10533f5245310bf sensiogeneratorbundle b1ccb78c1743f30817b0fce9bb5c6baff6ed7bf8 asseticbundle v1.0.1 

what version of symfony , of bundle using? documentation linked following master branch. there links in upper left change versions. 1.0 doesn't seem have configuration option.

the deps file should contain:

[jmssecurityextrabundle]   git=http://github.com/schmittjoh/jmssecurityextrabundle.git   target=/bundles/jms/securityextrabundle   version=origin/master 

you can see here else had same issue https://github.com/schmittjoh/jmssecurityextrabundle/issues/24


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -