PHP Class Phprest\Util\Controller

Show file Open project: phprest/phprest

Protected Properties

Property Type Description
$container League\Container\ContainerInterface

Public Methods

Method Description
__construct ( League\Container\ContainerInterface $container, boolean $registerRoutes = true )

Protected Methods

Method Description
addVersionToRoute ( Route $docblock )
getContainer ( ) : League\Container\ContainerInterface
registerRoute ( League\Route\RouteCollection $router, ReflectionClass $class, ReflectionMethod $method, mixed $docblock )
registerRoutes ( ) : void

Method Details

__construct() public method

public __construct ( League\Container\ContainerInterface $container, boolean $registerRoutes = true )
$container League\Container\ContainerInterface
$registerRoutes boolean

addVersionToRoute() protected method

protected addVersionToRoute ( Route $docblock )
$docblock Phprest\Annotation\Route

getContainer() protected method

protected getContainer ( ) : League\Container\ContainerInterface
return League\Container\ContainerInterface

registerRoute() protected method

protected registerRoute ( League\Route\RouteCollection $router, ReflectionClass $class, ReflectionMethod $method, mixed $docblock )
$router League\Route\RouteCollection
$class ReflectionClass
$method ReflectionMethod
$docblock mixed

registerRoutes() protected method

protected registerRoutes ( ) : void
return void

Property Details

$container protected property

protected ContainerInterface,League\Container $container
return League\Container\ContainerInterface