public function __construct(array $scan) { $this->scan = $scan; foreach (Finder::create()->files()->in(__DIR__ . '/Annotations') as $file) { AnnotationRegistry::registerFile($file->getRealPath()); } }