File tree Expand file tree Collapse file tree 3 files changed +14
-23
lines changed Expand file tree Collapse file tree 3 files changed +14
-23
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ parameters:
5
5
6
6
services :
7
7
gatekeeper :
8
- class : %gatekeeper.class%
8
+ class : ' %gatekeeper.class%'
9
9
10
10
gatekeeper.repository.dummy :
11
11
class : GateKeeper\Repository\DummyRepository
@@ -21,12 +21,12 @@ services:
21
21
22
22
gatekeeper.access.allow :
23
23
public : false
24
- class : %gatekeeper.access.allow.class%
24
+ class : ' %gatekeeper.access.allow.class%'
25
25
tags :
26
26
- { name: gatekeeper.access }
27
27
28
28
gatekeeper.access.deny :
29
29
public : false
30
- class : %gatekeeper.access.deny.class%
30
+ class : ' %gatekeeper.access.deny.class%'
31
31
tags :
32
- - { name: gatekeeper.access }
32
+ - { name: gatekeeper.access }
Original file line number Diff line number Diff line change 8
8
9
9
use GateKeeper \GateKeeper as Keeper ;
10
10
use GateKeeper \Item \ItemInterface ;
11
- use GateKeeper \Provider \GatesProviderInterface ;
12
11
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
13
12
use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
14
13
15
14
class GateKeeper implements VoterInterface
16
15
{
17
- /**
18
- * @var array|null
19
- */
20
- private $ gates ;
21
-
22
- /**
23
- * @var GatesProviderInterface
24
- */
25
- private $ gatesProvider ;
26
-
27
16
/**
28
17
* @var \GateKeeper\GateKeeper
29
18
*/
30
19
private $ gateKeeper ;
31
20
32
21
/**
33
22
* @param Keeper $gateKeeper
34
- * @param GatesProviderInterface $gatesProvider
35
23
*/
36
- public function __construct (Keeper $ gateKeeper, GatesProviderInterface $ gatesProvider )
24
+ public function __construct (Keeper $ gateKeeper )
37
25
{
38
- $ this ->gatesProvider = $ gatesProvider ;
39
26
$ this ->gateKeeper = $ gateKeeper ;
40
27
}
41
28
Original file line number Diff line number Diff line change 11
11
{
12
12
"name" : " Bartłomiej Kuleszewicz" ,
13
13
14
+ },
15
+ {
16
+ "name" : " Tomasz Wójcik" ,
17
+
14
18
}
15
19
],
16
20
"require" : {
17
- "php" : " >= 5.4" ,
21
+ "php" : " ^ 5.4 || ^7.4 || ^8.0 " ,
18
22
"docplanner/gatekeeper" : " 2.*" ,
19
- "symfony/dependency-injection" : " ^2.8|^3 .0" ,
20
- "symfony/http-kernel" : " ^2.8|^3 .0" ,
21
- "symfony/config" : " ^2.8|^3 .0" ,
22
- "symfony/security" : " ^2.8|^3 .0"
23
+ "symfony/dependency-injection" : " ^2.8 || ^3.0 || ^4 .0" ,
24
+ "symfony/http-kernel" : " ^2.8 || ^3.0 || ^4 .0" ,
25
+ "symfony/config" : " ^2.8 || ^3.0 || ^4 .0" ,
26
+ "symfony/security" : " ^2.8 || ^3.0 || ^4 .0"
23
27
},
24
28
"autoload" : {
25
29
"psr-4" : {
You can’t perform that action at this time.
0 commit comments