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

__construct() public method

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