PHP Class Matthias\SymfonyConsoleForm\Bridge\FormFactory\ConsoleFormWithDefaultValuesAndOptionsFactory

Inheritance: implements Matthias\SymfonyConsoleForm\Bridge\FormFactory\ConsoleFormFactory
Show file Open project: matthiasnoback/symfony-console-form

Public Methods

Method Description
__construct ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormRegistryInterface $formRegistry )
create ( string | Symfony\Component\Form\FormTypeInterface $formType, Symfony\Component\Console\Input\InputInterface $input, array $options = [] ) : Form

Private Methods

Method Description
addDefaultOptions ( array $options ) : array

Method Details

__construct() public method

public __construct ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormRegistryInterface $formRegistry )
$formFactory Symfony\Component\Form\FormFactoryInterface
$formRegistry Symfony\Component\Form\FormRegistryInterface

create() public method

public create ( string | Symfony\Component\Form\FormTypeInterface $formType, Symfony\Component\Console\Input\InputInterface $input, array $options = [] ) : Form
$formType string | Symfony\Component\Form\FormTypeInterface
$input Symfony\Component\Console\Input\InputInterface
$options array
return Symfony\Component\Form\Form