dev-master
9999999-devThe security bundle for Minimal
MIT
The Requires
- php >=5.5.9
- symfony/symfony 3.3.*
- friendsofsymfony/user-bundle ~2.0
- minimaloriginal/core-bundle dev-master
security bundle
The security bundle for Minimal
The security bundle for Minimal, (*1)
bin/console fos:user:create testuser test@example.com p@ssword --super-admin, (*2)
$bundles = [ ... new FOS\UserBundle\FOSUserBundle(), new MinimalOriginal\SecurityBundle\MinimalSecurityBundle(), ];, (*3)
minimal_security: resource: "@MinimalSecurityBundle/Resources/config/routing.yml" prefix: /, (*4)
security: encoders: MinimalOriginal\SecurityBundle\Entity\User: bcrypt, (*5)
role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: ROLE_ADMIN providers: minimal_security: id: fos_user.user_provider.username_email firewalls: main: pattern: ^/ form_login: provider: minimal_security csrf_token_generator: security.csrf.token_manager # if you are using Symfony < 2.8, use the following config instead: # csrf_provider: form.csrf_provider logout: true anonymous: true access_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin/, role: ROLE_USER }
The security bundle for Minimal
MIT
security bundle