protected function getEndpointsInClasses(SimpleAnnotationReader $reader)
    {
        $endpoints = new EndpointCollection();

        foreach ($this->getClassesToScan() as $class) {
            $endpoints = $endpoints->merge($this->getEndpointsInClass(
                $class, new AnnotationSet($class, $reader)
            ));
        }

        return $endpoints;
    }
protected function getEndpointsInClasses(SimpleAnnotationReader $reader)
    {
        $endpoints = new EndpointCollection();

        foreach ($this->getClassesToScan() as $class) {
            $endpoints = $endpoints->merge($this->getEndpointsInClass(
                $class, new AnnotationSet($class, $reader)
            ));
        }

        return $endpoints;
    }
protected function getEndpointsInClasses ( SimpleAnnotationReader $ reader ) { $ endpoints = new EndpointCollection ( ) ; foreach ( $ this -> getClassesToScan ( ) as $ class ) { $ endpoints = $ endpoints -> merge ( $ this -> getEndpointsInClass ( $ class , new AnnotationSet ( $ class , $ reader ) ) ) ; } return $ endpoints ; }
Scan the directory and generate the route manifest.

@param \Doctrine\Common\Annotations\SimpleAnnotationReader $reader

@return \Collective\Annotations\Routing\Annotations\EndpointCollection
Scan the directory and generate the route manifest .