Symfony 5 Roles management and access control | Symfony Roles management | Access control in Symfony

Опубликовано: 30 Март 2026
на канале: Gagan Vaid
10,918
114

786(My lucky number)
------

Hi everyone, in this video you will learn about basic roles management and access control in Symfony 5.
------
0:37 Roles management
7:49 Access control in security.yaml file
12:00 Access control in controller or other places
14:16 Sensio framework extra bundle
15:41 Annotations access checks
17:19 Access check using multiple roles
18:22 Access checks inside twig file
20:59 Access checks inside twig file using multiple roles

------
Symfony documentation: https://symfony.com/doc/current/secur...
------
Start symfony local server:
`php -S localhost:8000 -t public`

Create entity:
`php bin/console make:entity`

Migration commands:
`php bin/console make:migration`
`php bin/console doctrine:migrations:migrate`
------
Background Music: https://www.bensound.com