Example #1
0
 /**
  * Quick and dirty route creation
  *
  * @param        $data
  * @param null   $params
  *
  * @param string $matchedPath
  *
  * @return Route
  */
 public static function create($data, $params = null, $matchedPath = '')
 {
     $route = new self();
     $route->createFromRaw($data);
     $route->_matchedPath = $matchedPath;
     if ($params !== null) {
         $route->setRouteData($params);
     }
     return $route;
 }