routes() public method

Get all the connected routes as a flat list.
public routes ( ) : Route[]
return Cake\Routing\Route\Route[]
Exemplo 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();
 }
Exemplo n.º 2
0
 /**
  * Get the route scopes and their connected routes.
  *
  * @return array
  */
 public static function routes()
 {
     return static::$_collection->routes();
 }