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