Collective\Annotations\AnnotationScanner::registerAnnotationsPathWithRegistry PHP Method

registerAnnotationsPathWithRegistry() public method

Register the annotator files with the annotation registry.
    public function registerAnnotationsPathWithRegistry($path)
    {
        foreach (Finder::create()->files()->in($path) as $file) {
            AnnotationRegistry::registerFile($file->getRealPath());
        }
        return $this;
    }