PHP Class React\Gifsocket\Router

显示文件 Open project: reactphp/gifsocket

Public Methods

Method Description
__construct ( array $routes )
__invoke ( $request, $response )

Protected Methods

Method Description
handleNotFound ( $request, $response )
requestMatchesPattern ( $request, $pattern )

Method Details

__construct() public method

public __construct ( array $routes )
$routes array

__invoke() public method

public __invoke ( $request, $response )

handleNotFound() protected method

protected handleNotFound ( $request, $response )

requestMatchesPattern() protected method

protected requestMatchesPattern ( $request, $pattern )