public function registerAnnotationsPathWithRegistry($path) { foreach (Finder::create()->files()->in($path) as $file) { AnnotationRegistry::registerFile($file->getRealPath()); } return $this; }