Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class RouteAuthorizationChecker implements RouteAuthorizationCheckerInterface, LoggerAwareInterface |
||
22 | { |
||
23 | use LoggerAwareTrait; |
||
24 | |||
25 | /** |
||
26 | * @var TestLoaderInterface |
||
27 | */ |
||
28 | private $testLoader; |
||
29 | |||
30 | /** |
||
31 | * @var AuthorizationCheckerInterface |
||
32 | */ |
||
33 | private $authorizationChecker; |
||
34 | |||
35 | /** |
||
36 | * @param TestLoaderInterface $testLoader |
||
37 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
38 | */ |
||
39 | 21 | public function __construct(TestLoaderInterface $testLoader, AuthorizationCheckerInterface $authorizationChecker) |
|
40 | { |
||
41 | 21 | $this->testLoader = $testLoader; |
|
42 | 21 | $this->authorizationChecker = $authorizationChecker; |
|
43 | 21 | } |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 21 | public function isGranted(RouteContextInterface $routeContext) |
|
59 | } |
||
60 | } |
||
61 |