protected function loadControllers() {
		$routes = [];
		if(file_exists($this->getPath().'/Controller/')) {
			foreach(glob($this->getPath().'/Controller/*.php') as $filename) {
				$class = \Asgard\Common\Tools::loadClassFile($filename);
				if(is_subclass_of($class, 'Asgard\Http\Controller'))
					$routes = array_merge($routes, $this->controllersAnnotationReader->fetchRoutes($class));
			}
		}
		return $routes;
	}
protected function loadControllers() {
		$routes = [];
		if(file_exists($this->getPath().'/Controller/')) {
			foreach(glob($this->getPath().'/Controller/*.php') as $filename) {
				$class = \Asgard\Common\Tools::loadClassFile($filename);
				if(is_subclass_of($class, 'Asgard\Http\Controller'))
					$routes = array_merge($routes, $this->controllersAnnotationReader->fetchRoutes($class));
			}
		}
		return $routes;
	}
protected function loadControllers ( ) { $ routes = [ ] ; if ( file_exists ( $ this -> getPath ( ) . '/Controller/' ) ) { foreach ( glob ( $ this -> getPath ( ) . '/Controller/*.php' ) as $ filename ) { $ class = \ Asgard \ Common \ Tools :: loadClassFile ( $ filename ) ; if ( is_subclass_of ( $ class , 'Asgard\Http\Controller' ) ) $ routes = array_merge ( $ routes , $ this -> controllersAnnotationReader -> fetchRoutes ( $ class ) ) ; } } return $ routes ; }
Return bundle's controller routes.
@return array
Return bundle s controller routes .