Collective\Annotations\AnnotationFinder::routesAreScanned PHP Method

routesAreScanned() public method

Determine if the application routes have been scanned.
public routesAreScanned ( ) : boolean
return boolean
    public function routesAreScanned()
    {
        return $this->app['files']->exists($this->getScannedRoutesPath());
    }

Usage Example

 /**
  * Load the annotated routes
  *
  * @return void
  */
 protected function loadAnnotatedRoutes()
 {
     if ($this->app->environment('local') && $this->scanWhenLocal) {
         $this->scanRoutes();
     }
     $scans = $this->routeScans();
     if (!empty($scans) && $this->finder->routesAreScanned()) {
         $this->loadScannedRoutes();
     }
 }