cronKey = $cronKey; $this->response = $responseInterface; $this->variables = $variables; } public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if ( $this->cronKey === ( $request->getQueryParams()['cronkey'] ?? false ) ) { $response = $this->response->call($this); $this->launch([ $request, $response, ]); return $response; } return $handler->handle($request); } }