public function offsetGet($name)
    {
        if(isset($this->routes[$name]))
            return $this->routes[$name];

        $route = $this->factory->createRoute($this, $name, array());

        $this->addRoute($route);

        return $this->routes[$name] = $route;
    }
public function offsetGet($name)
    {
        if(isset($this->routes[$name]))
            return $this->routes[$name];

        $route = $this->factory->createRoute($this, $name, array());

        $this->addRoute($route);

        return $this->routes[$name] = $route;
    }
public function offsetGet ( $ name ) { if ( isset ( $ this -> routes [ $ name ] ) ) return $ this -> routes [ $ name ] ; $ route = $ this -> factory -> createRoute ( $ this , $ name , array ( ) ) ; $ this -> addRoute ( $ route ) ; return $ this -> routes [ $ name ] = $ route ; }
An array access get to conveniently
create an empty route with the optional name
@param string $name
@return Route
An array access get to conveniently create an empty route with the optional name