1 | <?php |
||
21 | class AuthenticationMiddleware implements HTTPMiddleware |
||
22 | { |
||
23 | /** |
||
24 | * @var Application |
||
25 | */ |
||
26 | protected $application = null; |
||
27 | |||
28 | /** |
||
29 | * @var Authenticator |
||
30 | */ |
||
31 | protected $authenticator; |
||
32 | |||
33 | /** |
||
34 | * Build error control chain for an application |
||
35 | * |
||
36 | * @param Application $application The SilverStripe Application. |
||
37 | */ |
||
38 | public function __construct(Application $application) |
||
43 | |||
44 | /** |
||
45 | * Process the middleware. |
||
46 | * |
||
47 | * @param HTTPRequest $request The incoming request. |
||
48 | * @param callable $next The next middleware. |
||
49 | * |
||
50 | * @return HTTPResponse |
||
51 | */ |
||
52 | public function process(HTTPRequest $request, callable $next) |
||
63 | } |
||
64 |