File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,7 @@ public function process(ContainerBuilder $container)
45
45
throw new LogicException ('No security voters found. You need to tag at least one with "security.voter" ' );
46
46
}
47
47
48
- $ adm = $ container ->hasDefinition ('debug.security.access.decision_manager ' )
49
- ? $ container ->getDefinition ('debug.security.access.decision_manager ' )
50
- : $ container ->getDefinition ('security.access.decision_manager ' )
51
- ;
48
+ $ adm = $ container ->getDefinition ($ container ->hasDefinition ('debug.security.access.decision_manager ' ) ? 'debug.security.access.decision_manager ' : 'security.access.decision_manager ' );
52
49
$ adm ->addMethodCall ('setVoters ' , array (array_values ($ voters )));
53
50
}
54
51
}
You can’t perform that action at this time.
0 commit comments