security(界面访问控制)

  • 参考链接

  • app/config/config.yml

     security:
         providers:
             main:
                 memory:
                     users:
                         admin:
                             password: 123456
                             roles: 'ROLE_ADMIN'
         encoders:
             Symfony\Component\Security\Core\User\User: plaintext
         firewalls:
             dev:
                 pattern: ^/(_(profiler|wdt)|css|images|js)/
                 security: false
             main:
                 http_basic: ~
                 form_login: ~
         access_control:
             - { path: ^/admin, roles: ROLE_ADMIN }
    
@耿志环 2012-∞ 冀ICP备17033181号, powered by Gitbook修订: 2019-07-08 16:49:59

results matching ""

    No results matching ""