Phprest\Util\Controller::registerRoute PHP 메소드

registerRoute() 보호된 메소드

protected registerRoute ( League\Route\RouteCollection $router, ReflectionClass $class, ReflectionMethod $method, mixed $docblock )
$router League\Route\RouteCollection
$class ReflectionClass
$method ReflectionMethod
$docblock mixed
    protected function registerRoute(RouteCollection $router, \ReflectionClass $class, \ReflectionMethod $method, $docblock)
    {
        if ($docblock instanceof Route) {
            $this->addVersionToRoute($docblock);
            $router->addRoute($docblock->method, $docblock->path, '\\' . $class->getName() . '::' . $method->getName());
        }
    }