public function expand(array $options = array(), $dynamic = false)
    {
        $mux   = new Mux();
        $target = $dynamic ? $this : $this->getClass();
        $mux->add('/:id', [$target, 'updateAction'], array_merge($options, array('method' => REQUEST_METHOD_POST   )));
        $mux->add('/:id', [$target, 'loadAction'],   array_merge($options, array('method' => REQUEST_METHOD_GET    )));
        $mux->add('/:id', [$target, 'deleteAction'], array_merge($options, array('method' => REQUEST_METHOD_DELETE )));
        $mux->add('', [$target, 'createAction'],     array_merge($options, array('method' => REQUEST_METHOD_POST   )));
        $mux->add('', [$target, 'collectionAction'], array_merge($options, array('method' => REQUEST_METHOD_GET    )));
        return $mux;
    }
public function expand(array $options = array(), $dynamic = false)
    {
        $mux   = new Mux();
        $target = $dynamic ? $this : $this->getClass();
        $mux->add('/:id', [$target, 'updateAction'], array_merge($options, array('method' => REQUEST_METHOD_POST   )));
        $mux->add('/:id', [$target, 'loadAction'],   array_merge($options, array('method' => REQUEST_METHOD_GET    )));
        $mux->add('/:id', [$target, 'deleteAction'], array_merge($options, array('method' => REQUEST_METHOD_DELETE )));
        $mux->add('', [$target, 'createAction'],     array_merge($options, array('method' => REQUEST_METHOD_POST   )));
        $mux->add('', [$target, 'collectionAction'], array_merge($options, array('method' => REQUEST_METHOD_GET    )));
        return $mux;
    }
public function expand ( array $ options = array ( ) , $ dynamic = false ) { $ mux = new Mux ( ) ; $ target = $ dynamic ? $ this : $ this -> getClass ( ) ; $ mux -> add ( '/:id' , [ $ target , 'updateAction' ] , array_merge ( $ options , array ( 'method' => REQUEST_METHOD_POST ) ) ) ; $ mux -> add ( '/:id' , [ $ target , 'loadAction' ] , array_merge ( $ options , array ( 'method' => REQUEST_METHOD_GET ) ) ) ; $ mux -> add ( '/:id' , [ $ target , 'deleteAction' ] , array_merge ( $ options , array ( 'method' => REQUEST_METHOD_DELETE ) ) ) ; $ mux -> add ( '' , [ $ target , 'createAction' ] , array_merge ( $ options , array ( 'method' => REQUEST_METHOD_POST ) ) ) ; $ mux -> add ( '' , [ $ target , 'collectionAction' ] , array_merge ( $ options , array ( 'method' => REQUEST_METHOD_GET ) ) ) ; return $ mux ; }
Expand controller actions into Mux object

@return Mux
Expand controller actions into Mux object