#/config/packages/security.yaml
- { path: '^/', roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
Embedding controllers requires making requests to those controllers and rendering some templates as result. This can have a significant impact on the application performance if you embed lots of controllers. If possible, cache the template fragment.
return $user->roles === $this->roles;
навскидку https://terme.ru/termin/teorija.html#:~:text=Теори...
Предлагаю не тратить время на схоластические споры