public function expand(array $options = array(), $dynamic = false)
    {
        $this->mux = $mux = new Mux();
        $routes = ControllerRouteBuilder::build($this);
        foreach ($routes as $route) {
            if ($dynamic) {
                $mux->add($route[0], array($this, $route[1]), array_merge($options, $route[2]));
            } else {
                $mux->add($route[0], array(get_class($this), $route[1]), array_merge($options, $route[2]));
            }
        }
        $mux->sort();
        return $mux;
    }
public function expand(array $options = array(), $dynamic = false)
    {
        $this->mux = $mux = new Mux();
        $routes = ControllerRouteBuilder::build($this);
        foreach ($routes as $route) {
            if ($dynamic) {
                $mux->add($route[0], array($this, $route[1]), array_merge($options, $route[2]));
            } else {
                $mux->add($route[0], array(get_class($this), $route[1]), array_merge($options, $route[2]));
            }
        }
        $mux->sort();
        return $mux;
    }
public function expand ( array $ options = array ( ) , $ dynamic = false ) { $ this -> mux = $ mux = new Mux ( ) ; $ routes = ControllerRouteBuilder :: build ( $ this ) ; foreach ( $ routes as $ route ) { if ( $ dynamic ) { $ mux -> add ( $ route [ 0 ] , array ( $ this , $ route [ 1 ] ) , array_merge ( $ options , $ route [ 2 ] ) ) ; } else { $ mux -> add ( $ route [ 0 ] , array ( get_class ( $ this ) , $ route [ 1 ] ) , array_merge ( $ options , $ route [ 2 ] ) ) ; } } $ mux -> sort ( ) ; return $ mux ; }
Expand controller actions to Mux object.

@return Mux
Expand controller actions to Mux object .