Tari\ServerFrameInterface::factory PHP Метод

factory() публичный Метод

public factory ( ) : tari\FactoryInterface
Результат tari\FactoryInterface
    public function factory() : FactoryInterface;

Usage Example

Пример #1
0
 public function handle(ServerRequestInterface $request, ServerFrameInterface $frame) : ResponseInterface
 {
     try {
         return $frame->next($request);
     } catch (\Throwable $exception) {
         return $frame->factory()->createResponse(500, [], $this->debug ? $exception : "Internal Server Error");
     }
 }
All Usage Examples Of Tari\ServerFrameInterface::factory
ServerFrameInterface