Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class RolesProvider |
||
15 | { |
||
16 | private $routeToRoleConverter; |
||
17 | private $secured_routes; |
||
18 | |||
19 | /** |
||
20 | * RolesProvider constructor. |
||
21 | * |
||
22 | * @param NamingStrategyInterface $routeToRoleConverter |
||
23 | * @param array $secured_routes |
||
24 | */ |
||
25 | 1 | public function __construct(NamingStrategyInterface $routeToRoleConverter, $secured_routes) |
|
29 | 1 | } |
|
30 | |||
31 | /** |
||
32 | * Get roles for secured routes. |
||
33 | * |
||
34 | * @return array $roles |
||
35 | */ |
||
36 | 1 | public function getRoles() |
|
46 |