예제 #1
0
 /**
  * Transforms Route object to PHP array.
  * @param  Route  $route Route object to transform.
  * @return array
  */
 public function transformRouteToArray(Route $route)
 {
     return ['name' => $route->getName(), 'action' => $route->getAction(), 'rules' => $route->getRules(), 'methods' => $route->getMethods(), 'route' => $route->getRoute(), 'sourceRoute' => $route->getSourceRoute(), 'defaults' => $route->getDefaults(), 'extras' => $route->getExtras(), 'tokens' => $route->getTokens(), 'arguments' => $route->getArguments()];
 }