Rename chill.role tag to chill_main.provide_role and optimize role provider

The `chill.role` tag has been renamed to `chill_main.provide_role` to prevent any confusion and make the namespaces more consistent. During this process, the class RoleProvidersCompilerPass was deleted, simplifying the role provision process by injecting tagged services directly into the RoleProvider. The change is also reflected in multiple YAML service configurations and explained in the MIGRATION.md file.
This commit is contained in:
2024-04-03 17:14:02 +02:00
parent 0081146a78
commit d6a6cc2572
13 changed files with 21 additions and 68 deletions

7
MIGRATION.md Normal file
View File

@@ -0,0 +1,7 @@
# Switch to symfony 5.0
- the tag `chill.role` is now renamed to `chill_main.provide_role`.
**Note**: It is not necessary to apply this tag on service definition: the tag is automatically applyied if the
service implements `\Chill\MainBundle\Security\ProvideRoleInterface`.