File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace GateKeeperBundle \DependencyInjection \Compiler ;
8
8
9
-
9
+ use GateKeeper \ GateKeeper ;
10
10
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
11
11
use Symfony \Component \DependencyInjection \ContainerBuilder ;
12
12
use Symfony \Component \DependencyInjection \Reference ;
@@ -22,15 +22,15 @@ class GateKeeperCompilerPass implements CompilerPassInterface
22
22
*/
23
23
public function process (ContainerBuilder $ container )
24
24
{
25
- if (!$ container ->hasDefinition (' gatekeeper ' ))
25
+ if (!$ container ->hasDefinition (GateKeeper::class ))
26
26
{
27
27
return ;
28
28
}
29
29
30
30
$ definition = $ container ->getDefinition ('gatekeeper.voter ' );
31
31
$ definition ->addArgument (new Reference ($ container ->getParameter ('gatekeeper.provider.service ' )));
32
32
33
- $ definition = $ container ->getDefinition (' gatekeeper ' );
33
+ $ definition = $ container ->getDefinition (GateKeeper::class );
34
34
$ definition ->addArgument (new Reference ($ container ->getParameter ('gatekeeper.repository.service ' )));
35
35
36
36
$ taggedServices = $ container ->findTaggedServiceIds ('gatekeeper.access ' );
@@ -43,4 +43,4 @@ public function process(ContainerBuilder $container)
43
43
}
44
44
}
45
45
46
- }
46
+ }
Original file line number Diff line number Diff line change 1
- parameters :
2
- gatekeeper.class : GateKeeper\GateKeeper
3
- gatekeeper.access.allow.class : GateKeeperBundle\Access\Allow
4
- gatekeeper.access.deny.class : GateKeeperBundle\Access\Deny
5
-
6
1
services :
7
2
GateKeeper\GateKeeper :
8
- alias : ' gatekeeper'
3
+ class : GateKeeper\GateKeeper
4
+ public : true
9
5
10
6
gatekeeper :
11
- class : ' %gatekeeper.class%'
7
+ alias : GateKeeper\GateKeeper
8
+ deprecated : true
12
9
public : true
13
10
14
11
gatekeeper.repository.dummy :
@@ -19,18 +16,18 @@ services:
19
16
20
17
gatekeeper.voter :
21
18
class : GateKeeperBundle\Voter\GateKeeper
22
- arguments : ["@gatekeeper" ]
19
+ arguments : ['@GateKeeper\GateKeeper' ]
23
20
tags :
24
21
- { name: security.voter }
25
22
26
23
gatekeeper.access.allow :
27
24
public : false
28
- class : ' %gatekeeper.access.allow.class% '
25
+ class : GateKeeperBundle\Access\Allow
29
26
tags :
30
27
- { name: gatekeeper.access }
31
28
32
29
gatekeeper.access.deny :
33
30
public : false
34
- class : ' %gatekeeper.access.deny.class% '
31
+ class : GateKeeperBundle\Access\Deny
35
32
tags :
36
33
- { name: gatekeeper.access }
You can’t perform that action at this time.
0 commit comments