1 | <?php |
||
29 | class Authenticator implements \Minotaur\Route\Plugin |
||
30 | { |
||
31 | /** |
||
32 | * @var \Caridea\Auth\Service |
||
33 | */ |
||
34 | protected $service; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $authUrl; |
||
39 | |||
40 | /** |
||
41 | * Creates a new AuthPlugin. |
||
42 | * |
||
43 | * @param $service - The auth service |
||
44 | * @param $authUrl - The URL for the standalone login form |
||
45 | */ |
||
46 | 2 | public function __construct(\Caridea\Auth\Service $service, string $authUrl) |
|
51 | |||
52 | /** |
||
53 | * Gets the plugin priority; larger means first. |
||
54 | * |
||
55 | * @return - The plugin priority |
||
|
|||
56 | */ |
||
57 | public function getPriority(): int |
||
61 | |||
62 | /** |
||
63 | * Allows a plugin to issue a response before the request is dispatched. |
||
64 | * |
||
65 | * @param $request - The server request |
||
66 | * @param $response - The response |
||
67 | * @param callable $next The next layer. (function (Request,Response): Response) |
||
68 | * @return - The response |
||
69 | */ |
||
70 | 2 | public function __invoke(Request $request, Response $response, callable $next): Response |
|
85 | } |
||
86 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.