PHP Class Tari\Server

Mostrar archivo Open project: ircmaxell/tari-php

Protected Properties

Property Type Description
$factory
$stack

Public Methods

Method Description
__construct ( tari\FactoryInterface $factory, array $middleware = [] )
append ( $middleware ) : void Append a middleware onto the stack
prepend ( $middleware ) : void Append a middleware onto the stack
run ( Psr\Http\Message\ServerRequestInterface $request, callable $default ) : Psr\Http\Message\ResponseInterface

Private Methods

Method Description
normalize ( $middleware ) : tari\ServerMiddlewareInterface

Method Details

__construct() public method

public __construct ( tari\FactoryInterface $factory, array $middleware = [] )
$factory tari\FactoryInterface
$middleware array

append() public method

Append a middleware onto the stack
public append ( $middleware ) : void
return void

prepend() public method

Append a middleware onto the stack
public prepend ( $middleware ) : void
return void

run() public method

public run ( Psr\Http\Message\ServerRequestInterface $request, callable $default ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$default callable
return Psr\Http\Message\ResponseInterface

Property Details

$factory protected_oe property

protected $factory

$stack protected_oe property

protected $stack