Lines Matching refs:request

70      * @param ServerRequestInterface  $request
76 …public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): Respon… argument
89 return $handler->handle($request);
93 $request = Registry::container()->get(ServerRequestInterface::class);
95 Registry::container()->set(ServerRequestInterface::class, $request);
98 return $this->httpExceptionResponse($request, $exception);
101 $request = Registry::container()->get(ServerRequestInterface::class) ?? $request;
103 return $this->thirdPartyExceptionResponse($request, $exception);
113 $request = Registry::container()->get(ServerRequestInterface::class);
118 return $this->unhandledExceptionResponse($request, $exception);
125 $request = $request->withAttribute('tree', null);
127 return $this->unhandledExceptionResponse($request, $exception);
136 return $this->unhandledExceptionResponse($request, $exception);
147 * @param ServerRequestInterface $request
152 …private function httpExceptionResponse(ServerRequestInterface $request, HttpException $exception):… argument
154 $tree = Validator::attributes($request)->treeOptional();
163 $request->getHeaderLine('X-Requested-With') !== '' &&
164 $request->getMethod() === RequestMethodInterface::METHOD_GET
178 * @param ServerRequestInterface $request
183 …private function thirdPartyExceptionResponse(ServerRequestInterface $request, Throwable $exception… argument
185 $tree = Validator::attributes($request)->treeOptional();
190 if ($request->getHeaderLine('X-Requested-With') !== '') {
202 * @param ServerRequestInterface $request
207 …private function unhandledExceptionResponse(ServerRequestInterface $request, Throwable $exception)… argument
226 if ($request->getHeaderLine('X-Requested-With') !== '') {
229 if ($request->getMethod() === RequestMethodInterface::METHOD_GET) {
243 'request' => $request,
244 'tree' => Validator::attributes($request)->treeOptional(),
251 'request' => $request,