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);
    }