class WampRouter

Class WampRouter

Properties

protected Router $pubSubRouter
protected LoggerInterface $logger
protected bool $debug

Methods

__construct(RouterInterface $router = null, mixed $debug, LoggerInterface $logger = null)

WampRouter constructor.

setContext(RouterContext $context)

No description

RouterContext
getContext()

No description

match(Topic $topic, null $tokenSeparator = null)

No description

string
generate(string $routeName, array $parameters = [], null|string $tokenSeparator = null)

No description

mixed
getCollection()

No description

Details

at line 44
__construct(RouterInterface $router = null, mixed $debug, LoggerInterface $logger = null)

WampRouter constructor.

Parameters

RouterInterface $router
mixed $debug
LoggerInterface $logger

at line 54
setContext(RouterContext $context)

Parameters

RouterContext $context

at line 62
RouterContext getContext()

Return Value

RouterContext

at line 74
WampRequest match(Topic $topic, null $tokenSeparator = null)

Parameters

Topic $topic
null $tokenSeparator

Return Value

WampRequest

Exceptions

ResourceNotFoundException

at line 102
string generate(string $routeName, array $parameters = [], null|string $tokenSeparator = null)

Parameters

string $routeName
array $parameters
null|string $tokenSeparator

Return Value

string

at line 109
mixed getCollection()

Return Value

mixed