]> Raphaël G. Git Repositories - userbundle/commitdiff
Add security context service 0.1.6
authorRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:14:37 +0000 (00:14 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:14:37 +0000 (00:14 +0100)
Resources/config/packages/rapsys_user.yaml

index 75c5b5972812236a78b5cc0435767908c581d7c3..0506c04269b932143cafa22e997d586c0cef396d 100644 (file)
@@ -7,6 +7,11 @@ services:
     #Register slugger utils alias
     Rapsys\UserBundle\Utils\Slugger:
         alias: 'rapsys_user.slugger'
+    #Register security context service
+    rapsys_user.access_decision_manager:
+        class: 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager'
+        public: true
+        arguments: [ [ '@security.access.role_hierarchy_voter' ] ]
     #Register default controller
     Rapsys\UserBundle\Controller\DefaultController:
         arguments: [ '@service_container', '@router', '@translator' ]