Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 38 | public function handle(Request $request, \Closure $next) |
|
27 | { |
||
28 | app()->extend(Role::class, function($roleRepository, $app) { |
||
29 | 38 | return new LogicRoleRepository($roleRepository, $this->logicTester); |
|
30 | 38 | }); |
|
31 | |||
32 | app()->extend(UserRole::class, function($userRole, $app) { |
||
33 | 17 | return new LogicUserGroupRepository($userRole, $this->logicTester); |
|
34 | 38 | }); |
|
35 | |||
36 | 38 | return $next($request); |
|
37 | } |
||
39 | } |