private function registerRoutes($controller, $controllerService, $reflectionClass)
    {
        $methods = $reflectionClass->getMethods();

        foreach ($methods as $reflectionMethod) {
            $route = $this->reader->getMethodAnnotation($reflectionMethod, 'Singular\Annotation\Route');

            $beforeFilters = $this->reader->getMethodAnnotation($reflectionMethod, 'Singular\Annotation\Before');
            $afterFilters = $this->reader->getMethodAnnotation($reflectionMethod, 'Singular\Annotation\After');

            if ($route) {
                $this->registerBasicRoute($route, $controller, $controllerService, $reflectionClass, $reflectionMethod, $beforeFilters, $afterFilters);
            }
        }
    }
private function registerRoutes($controller, $controllerService, $reflectionClass)
    {
        $methods = $reflectionClass->getMethods();

        foreach ($methods as $reflectionMethod) {
            $route = $this->reader->getMethodAnnotation($reflectionMethod, 'Singular\Annotation\Route');

            $beforeFilters = $this->reader->getMethodAnnotation($reflectionMethod, 'Singular\Annotation\Before');
            $afterFilters = $this->reader->getMethodAnnotation($reflectionMethod, 'Singular\Annotation\After');

            if ($route) {
                $this->registerBasicRoute($route, $controller, $controllerService, $reflectionClass, $reflectionMethod, $beforeFilters, $afterFilters);
            }
        }
    }
private function registerRoutes ( $ controller , $ controllerService , $ reflectionClass ) { $ methods = $ reflectionClass -> getMethods ( ) ; foreach ( $ methods as $ reflectionMethod ) { $ route = $ this -> reader -> getMethodAnnotation ( $ reflectionMethod , 'Singular\Annotation\Route' ) ; $ beforeFilters = $ this -> reader -> getMethodAnnotation ( $ reflectionMethod , 'Singular\Annotation\Before' ) ; $ afterFilters = $ this -> reader -> getMethodAnnotation ( $ reflectionMethod , 'Singular\Annotation\After' ) ; if ( $ route ) { $ this -> registerBasicRoute ( $ route , $ controller , $ controllerService , $ reflectionClass , $ reflectionMethod , $ beforeFilters , $ afterFilters ) ; } } }
Registra rotas definidas no controlador.

@param \Silex\ControllerCollection $controller
@param string                      $controllerService
@param \ReflectionClass            $reflectionClass
Registra rotas definidas no controlador .