Adamgoose\Routing\Annotations\Scanner::__construct PHP 메소드

__construct() 공개 메소드

Create a new scanner instance.
public __construct ( array $scan ) : void
$scan array
리턴 void
    public function __construct(array $scan)
    {
        $this->scan = $scan;
        foreach (Finder::create()->files()->in(__DIR__ . '/Annotations') as $file) {
            AnnotationRegistry::registerFile($file->getRealPath());
        }
    }