ARouter
0.1.0
Annotation based router for your projects
|
Public Member Functions | |
__construct (RouteMappingsScannerInterface $scanner, MethodArgumentsResolverService $argumentsResolverService, HttpMessageConverterManager $converterManager) | |
getResponse (ServerRequestInterface $request) | |
Protected Member Functions | |
getControllerInstance (string $controllerName) | |
Protected Attributes | |
$routeMappings = NULL | |
Main class for interaction with routing system.
This router is PSR-7 compatible, this means that it works with ServerRequestInterface.
Here is a basic example of using the Router class.
__construct | ( | RouteMappingsScannerInterface | $scanner, |
MethodArgumentsResolverService | $argumentsResolverService, | ||
HttpMessageConverterManager | $converterManager | ||
) |
Router constructor.
\ARouter\Routing\Scanner\RouteMappingsScannerInterface | $scanner | |
\ARouter\Routing\Resolver\Service\MethodArgumentsResolverService | $argumentsResolverService | |
\ARouter\Routing\HttpMessageConverter\HttpMessageConverterManager | $converterManager |
|
protected |
Get controller instance.
string | $controllerName | Full class name of controller class. |
getResponse | ( | ServerRequestInterface | $request | ) |
{Get HTTP response object for given request.
\Psr\Http\Message\ServerRequestInterface | $request | HTTP request. |
Implements RouterInterface.