routes() public method

Get all the connected routes as a flat list.
public routes ( ) : Route[]
return Cake\Routing\Route\Route[]
Esempio n. 1
0
 /**
  * Get the route scopes and their connected routes.
  *
  * @return array
  */
 public static function routes()
 {
     if (!static::$initialized) {
         static::_loadRoutes();
     }
     return static::$_collection->routes();
 }
Esempio n. 2
0
 /**
  * Get the route scopes and their connected routes.
  *
  * @return array
  */
 public static function routes()
 {
     return static::$_collection->routes();
 }