php - Configuration path "security.access_control" cannot be overwritten -


i'm busy trying configurate fouserbundle on symfony 2.6.9. doesn't work, got message:

forbiddenoverwriteexception in basenode.php line 223: configuration path "security.access_control" cannot overwritten. have define options path, , of sub-paths in 1 configuration section.

(i did configurate, appkernel, config,composer)

user.php

<?php  namespace fly\userbundle\entity;  use fos\userbundle\model\user baseuser; use doctrine\orm\mapping orm;  /**  * @orm\entity  * @orm\table(name="fly_user")  */ class user extends baseuser {     /**      * @orm\id      * @orm\column(type="integer")      * @orm\generatedvalue(strategy="auto")      */     protected $id;      public function __construct()     {         parent::__construct();         // own logic     } } 

app/resources/config/security.yml

imports: - { resource: "@flyuserbundle/resources/config/security.yml" }   security:     access_control:         - { path: ^/login$, role: is_authenticated_anonymously }         - { path: ^/register, role: is_authenticated_anonymously }         - { path: ^/resetting, role: is_authenticated_anonymously }         - { path: ^/admin/, role: role_admin }      role_hierarchy:         role_admin:       role_user         role_super_admin: role_admin 

userbundle/resources/config/security.yml

security: encoders:     fos\userbundle\model\userinterface: sha512  providers:         fos_userbundle:             id: fos_user.user_manager  firewalls:      main:                 pattern: ^/                 form_login:                     provider: fos_userbundle                     csrf_provider: form.csrf_provider                 logout:       true                 anonymous:    true     dev:         pattern:  ^/(_(profiler|wdt)|css|images|js)/         security: false      login:         pattern:  ^/demo/secured/login$         security: false      secured_area:         pattern:    ^/demo/secured/         form_login:             check_path: /demo/secured/login_check             login_path: /demo/secured/login         logout:             path:   /demo/secured/logout             target: /demo/         #anonymous: ~         #http_basic:         #    realm: "secured demo area" 

app/resources/config/routing.yml

fly_platform: resource: "@flyplatformbundle/resources/config/routing.yml" prefix:   /   mremi_contact_form:     resource: "@mremicontactbundle/resources/config/routing.xml"  genemu_base64:         resource: "@genemuformbundle/resources/config/routing/base64.xml"  _user_bundle:     resource: "@userbundle/resources/config/routing.yml" 

userbundle/resources/config/routing.yml

fos_user_security: resource: "@fosuserbundle/resources/config/routing/security.xml"   fos_user_profile:     resource: "@fosuserbundle/resources/config/routing/profile.xml"     prefix: /profile  fos_user_register:     resource: "@fosuserbundle/resources/config/routing/registration.xml"     prefix: /register  fos_user_resetting:     resource: "@fosuserbundle/resources/config/routing/resetting.xml"     prefix: /resetting  fos_user_change_password:     resource: "@fosuserbundle/resources/config/routing/change_password.xml"     prefix: /profile 

thank

in symfony, error message says, ca't override security options. should define security related configuration in app/config/security.yml.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -