| 1 | <?php |
||
| 15 | class WebAuthentication |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The Guard implementation. |
||
| 20 | * |
||
| 21 | * @var Guard |
||
| 22 | */ |
||
| 23 | protected $auth; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var \App\Port\Butler\Portals\PortButler |
||
| 27 | */ |
||
| 28 | private $portButler; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Create a new middleware instance. |
||
| 32 | * |
||
| 33 | * @param Guard $auth |
||
| 34 | * |
||
| 35 | * @return void |
||
|
|
|||
| 36 | */ |
||
| 37 | public function __construct(Guard $auth, PortButler $portButler) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Handle an incoming request. |
||
| 45 | * |
||
| 46 | * @param \Illuminate\Http\Request $request |
||
| 47 | * @param \Closure $next |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function handle(Request $request, Closure $next) |
||
| 59 | } |
||
| 60 |
Adding a
@returnannotation 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.