1 | <?php namespace WITR\Http\Middleware; |
||
7 | class VerifyAuthOrWhitelisted { |
||
8 | |||
9 | /** |
||
10 | * The Guard implementation. |
||
11 | * |
||
12 | * @var Guard |
||
13 | */ |
||
14 | protected $auth; |
||
15 | |||
16 | /** |
||
17 | * The Whitelist implementation. |
||
18 | * |
||
19 | * @var Whitelist |
||
20 | */ |
||
21 | protected $whitelist; |
||
22 | |||
23 | /** |
||
24 | * Create a new filter instance. |
||
25 | * |
||
26 | * @param Guard $auth |
||
27 | * @return void |
||
|
|||
28 | */ |
||
29 | public function __construct(Guard $auth, Whitelist $whitelist) |
||
34 | |||
35 | /** |
||
36 | * Handle an incoming request. |
||
37 | * |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Closure $next |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function handle($request, Closure $next) |
||
58 | |||
59 | } |
||
60 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.