create() public static method

Create a new scanner instance.
public static create ( array $scan ) : static
$scan array
return static
コード例 #1
0
 /**
  * Get the route definitions for the annotations.
  *
  * @return string
  */
 protected function getRouteDefinitions()
 {
     $provider = 'Adamgoose\\AnnotationsServiceProvider';
     return '<?php ' . PHP_EOL . PHP_EOL . Scanner::create($this->laravel->getProvider($provider)->routeScans())->getRouteDefinitions() . PHP_EOL;
 }