PHP Class Kraken\Network\Http\Component\Router\HttpRouter

Inheritance: implements Kraken\Network\Http\Component\Router\HttpRouterInterface
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$allowedOrigins string[]
$checkOrigin boolean
$context Symfony\Component\Routing\RequestContext
$host string
$matcher Symfony\Component\Routing\Matcher\UrlMatcherInterface
$routes Symfony\Component\Routing\RouteCollection

Méthodes publiques

Méthode Description
__construct ( Kraken\Network\NetworkComponentAwareInterface $aware = null, mixed[] $params = [] )
__destruct ( )
addRoute ( $path, Kraken\Network\NetworkComponentInterface $component )
allowOrigin ( $address )
disallowOrigin ( $address )
existsRoute ( $path )
getAllowedOrigins ( )
handleConnect ( Kraken\Network\NetworkConnectionInterface $conn )
handleDisconnect ( Kraken\Network\NetworkConnectionInterface $conn )
handleError ( Kraken\Network\NetworkConnectionInterface $conn, $ex )
handleMessage ( Kraken\Network\NetworkConnectionInterface $conn, Kraken\Network\NetworkMessageInterface $message )
isOriginAllowed ( $address )
removeRoute ( $path )

Méthodes protégées

Méthode Description
close ( Kraken\Network\NetworkConnectionInterface $conn, integer $code = 400 ) : null Close a connection with an HTTP response.

Method Details

__construct() public méthode

public __construct ( Kraken\Network\NetworkComponentAwareInterface $aware = null, mixed[] $params = [] )
$aware Kraken\Network\NetworkComponentAwareInterface
$params mixed[]

__destruct() public méthode

public __destruct ( )

addRoute() public méthode

public addRoute ( $path, Kraken\Network\NetworkComponentInterface $component )
$component Kraken\Network\NetworkComponentInterface

allowOrigin() public méthode

public allowOrigin ( $address )

close() protected méthode

Close a connection with an HTTP response.
protected close ( Kraken\Network\NetworkConnectionInterface $conn, integer $code = 400 ) : null
$conn Kraken\Network\NetworkConnectionInterface
$code integer
Résultat null

disallowOrigin() public méthode

public disallowOrigin ( $address )

existsRoute() public méthode

public existsRoute ( $path )

getAllowedOrigins() public méthode

public getAllowedOrigins ( )

handleConnect() public méthode

public handleConnect ( Kraken\Network\NetworkConnectionInterface $conn )
$conn Kraken\Network\NetworkConnectionInterface

handleDisconnect() public méthode

public handleDisconnect ( Kraken\Network\NetworkConnectionInterface $conn )
$conn Kraken\Network\NetworkConnectionInterface

handleError() public méthode

public handleError ( Kraken\Network\NetworkConnectionInterface $conn, $ex )
$conn Kraken\Network\NetworkConnectionInterface

handleMessage() public méthode

public handleMessage ( Kraken\Network\NetworkConnectionInterface $conn, Kraken\Network\NetworkMessageInterface $message )
$conn Kraken\Network\NetworkConnectionInterface
$message Kraken\Network\NetworkMessageInterface

isOriginAllowed() public méthode

public isOriginAllowed ( $address )

removeRoute() public méthode

public removeRoute ( $path )

Property Details

$allowedOrigins protected_oe property

protected string[] $allowedOrigins
Résultat string[]

$checkOrigin protected_oe property

protected bool $checkOrigin
Résultat boolean

$context protected_oe property

protected RequestContext,Symfony\Component\Routing $context
Résultat Symfony\Component\Routing\RequestContext

$host protected_oe property

protected string $host
Résultat string

$matcher protected_oe property

protected UrlMatcherInterface,Symfony\Component\Routing\Matcher $matcher
Résultat Symfony\Component\Routing\Matcher\UrlMatcherInterface

$routes protected_oe property

protected RouteCollection,Symfony\Component\Routing $routes
Résultat Symfony\Component\Routing\RouteCollection