1 | <?php |
||
15 | class Recaptcha |
||
16 | { |
||
17 | private $secret; |
||
18 | |||
19 | /** |
||
20 | * Constructor. Set the secret token. |
||
21 | * |
||
22 | * @param string $secret |
||
23 | */ |
||
24 | public function __construct($secret) |
||
28 | |||
29 | /** |
||
30 | * Execute the middleware. |
||
31 | * |
||
32 | * @param ServerRequestInterface $request |
||
33 | * @param ResponseInterface $response |
||
34 | * @param callable $next |
||
35 | * |
||
36 | * @return ResponseInterface |
||
37 | */ |
||
38 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
57 | } |
||
58 |