public function detachAction($name)
    {
        $actions = $this->getRequiredActions();

        foreach ($actions as $key => $action) {
            if ($action->getName() === $name) {
                unset($actions[$key]);
            }
        }

        $this->setOption(self::OPTION_REQUIRED_ACTIONS, $actions);
    }
public function detachAction($name)
    {
        $actions = $this->getRequiredActions();

        foreach ($actions as $key => $action) {
            if ($action->getName() === $name) {
                unset($actions[$key]);
            }
        }

        $this->setOption(self::OPTION_REQUIRED_ACTIONS, $actions);
    }
public function detachAction ( $ name ) { $ actions = $ this -> getRequiredActions ( ) ; foreach ( $ actions as $ key => $ action ) { if ( $ action -> getName ( ) === $ name ) { unset ( $ actions [ $ key ] ) ; } } $ this -> setOption ( self :: OPTION_REQUIRED_ACTIONS , $ actions ) ; }
Detach old action by name
@param  string $name name of action
Detach old action by name