Matthias\SymfonyConsoleForm\Bridge\Interaction\FieldWithNoInteractionInteractor::interactWith PHP Method

interactWith() public method

public interactWith ( Symfony\Component\Form\FormInterface $form, Symfony\Component\Console\Helper\HelperSet $helperSet, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$form Symfony\Component\Form\FormInterface
$helperSet Symfony\Component\Console\Helper\HelperSet
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    public function interactWith(FormInterface $form, HelperSet $helperSet, InputInterface $input, OutputInterface $output)
    {
        if (FormUtil::isTypeInAncestry($form, ButtonType::class)) {
            throw new NoNeedToInteractWithForm();
        }
        // by default, we let another interactor interact with this form
        throw new CanNotInteractWithForm();
    }
FieldWithNoInteractionInteractor