From: Raphaƫl Gertz Date: Tue, 23 Feb 2021 23:14:37 +0000 (+0100) Subject: Add security context service X-Git-Tag: 0.1.6 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/c6220ead8f050f184a549d82f64176812675a8cb?ds=inline Add security context service --- diff --git a/Resources/config/packages/rapsys_user.yaml b/Resources/config/packages/rapsys_user.yaml index 75c5b59..0506c04 100644 --- a/Resources/config/packages/rapsys_user.yaml +++ b/Resources/config/packages/rapsys_user.yaml @@ -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' ]