Bristol SU Support Package
src
Authorization
Middleware
LogoutOfExtras.php
Go to the documentation of this file.
1
<?php
2
3
4
namespace
BristolSU\Support\Authorization\Middleware
;
5
6
7
use
BristolSU\Support\Authentication\Contracts\Authentication
;
8
use
Illuminate\Http\Request
;
9
13
class
LogoutOfExtras
14
{
15
21
private
$authentication
;
22
28
public
function
__construct
(
Authentication
$authentication
)
29
{
30
$this->authentication =
$authentication
;
31
}
32
40
public
function
handle
(Request $request, \
Closure
$next)
41
{
42
$this->authentication->reset();
43
return
$next($request);
44
}
45
46
}
BristolSU\Support\Authorization\Middleware\LogoutOfExtras\handle
handle(Request $request, \Closure $next)
Definition:
LogoutOfExtras.php:40
BristolSU\Support\Authentication\Contracts\Authentication
Definition:
Authentication.php:15
BristolSU\Support\Authorization\Middleware
Definition:
CheckActivityEnabled.php:3
Closure
BristolSU\Support\Authorization\Middleware\LogoutOfExtras\__construct
__construct(Authentication $authentication)
Definition:
LogoutOfExtras.php:28
Authentication
BristolSU\Support\Authorization\Middleware\LogoutOfExtras
Definition:
LogoutOfExtras.php:13
Request
BristolSU\Support\Authorization\Middleware\LogoutOfExtras\$authentication
$authentication
Definition:
LogoutOfExtras.php:21
Generated by
1.8.13