<commit_before># you can read more about security in the related section of the documentation
# http://symfony.com/doc/current/book/security.html
security:
    # http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password
    encoders:
        Listabierta\Bundle\MunicipalesBundle\Entity\AdminCandidacy:
            algorithm: bcrypt
            cost: 12
        Symfony\Component\Security\Core\User\User:
            algorithm: bcrypt
            cost: 12

    # http://symfony.com/doc/current/book/security.html#hierarchical-roles
    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
    providers:
        administrators:
            entity: { class: MunicipalesBundle:AdminCandidacy }
        users:
            entity: { class: MunicipalesBundle:AdminCandidacy }
        
        main:
            entity:
                class: MunicipalesBundle:AdminCandidacy
                property: username
                
        in_memory:
            memory:
                users:
                    user:  { password: <PASSWORD>, roles: [ 'ROLE_USER' ] }
                    admin: { password: <PASSWORD>, roles: [ 'ROLE_ADMIN' ] }

    # the main part of the security, where you can set up firewalls
    # for specific sections of your app
    firewalls:
        secured_area:
            pattern:    ^/
            anonymous:  ~
            form_login:
                login_path:  login
                check_path:  login_check<commit_msg>Add voters encorders in security config<commit_after># you can read more about security in the related section of the documentation
# http://symfony.com/doc/current/book/security.html
security:
    # http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password
    encoders:
        Listabierta\Bundle\MunicipalesBundle\Entity\AdminCandidacy:
            algorithm: bcrypt
            cost: 12
        Listabierta\Bundle\MunicipalesBundle\Entity\Candidate:
            algorithm: bcrypt
            cost: 12
        Listabierta\Bundle\MunicipalesBundle\Entity\Voter:
            algorithm: bcrypt
            cost: 12
        Symfony\Component\Security\Core\User\User:
            algorithm: bcrypt
            cost: 12

    # http://symfony.com/doc/current/book/security.html#hierarchical-roles
    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
    providers:
        administrators:
            entity: { class: MunicipalesBundle:AdminCandidacy }
        users:
            entity: { class: MunicipalesBundle:AdminCandidacy }
        voters:
            entity: { class: MunicipalesBundle:Voter } 
                  
        main:
            entity:
                class: MunicipalesBundle:AdminCandidacy
                property: username
                
        in_memory:
            memory:
                users:
                    user:  { password: <PASSWORD>, roles: [ 'ROLE_USER' ] }
                    admin: { password: <PASSWORD>, roles: [ 'ROLE_ADMIN' ] }

    # the main part of the security, where you can set up firewalls
    # for specific sections of your app
    firewalls:
        secured_area:
            pattern:    ^/
            anonymous:  ~
            form_login:
                login_path:  login
                check_path:  login_check
{'fraction_non_alphanumeric': 0.08319467554076539, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 1.869530628480509, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2095554', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1006, 'n_words': 202}