Adamgoose\Routing\Annotations\Scanner::getEndpointsInClasses PHP Method

getEndpointsInClasses() protected method

Scan the directory and generate the route manifest.
protected getEndpointsInClasses ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader ) : EndpointCollection
$reader Doctrine\Common\Annotations\SimpleAnnotationReader
return EndpointCollection
    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;
    }