Tari\ServerFrameInterface::factory PHP Method

factory() public method

public factory ( ) : tari\FactoryInterface
return tari\FactoryInterface
    public function factory() : FactoryInterface;

Usage Example

Exemplo n.º 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