Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ScopeBouncer |
||
10 | { |
||
11 | /** |
||
12 | * The Bouncer instance. |
||
13 | * |
||
14 | * @var \Silber\Bouncer\Bouncer |
||
15 | */ |
||
16 | protected $bouncer; |
||
17 | |||
18 | /** |
||
19 | * Constructor. |
||
20 | * |
||
21 | * @param \Silber\Bouncer\Bouncer $bouncer |
||
22 | */ |
||
23 | public function __construct(Bouncer $bouncer) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Set the proper Bouncer scope for the incoming request. |
||
30 | * |
||
31 | * @param \Illuminate\Http\Request $request |
||
32 | * @param \Closure $next |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function handle($request, Closure $next) |
||
49 |