security:
    encoders:
        Dorcas\TabithaBundle\Entity\Users: md5

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        administrators:
            entity: { class: DorcasTabithaBundle:Users, property: username }

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

        login:
            pattern:  ^/private/login$
            security: false

        secured_area:
            pattern:    ^/private
            form_login:
                check_path: /private/login_check
                login_path: /private/login
            logout:
                path:   /private/logout
                target: http://www.google.com
            #anonymous: ~
            #http_basic:
            #    realm: "Secured Demo Area"

    access_control:
        - { path: ^/private/admin, roles: ROLE_ADMIN }

        #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
        #- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
