Symfony\Component\Form\FormConfigBuilder::__construct
Creates an empty form configuration.
Signature
public function __construct(string|integer
$name,
EventDispatcherInterface
$dataClass,
EventDispatcherInterface
$dispatcher,
array
$options )
Parameters
$name
— object- The form name
$dataClass
— string- The class of the form's data
$dispatcher
— Symfony\Component\EventDispatcher\EventDispatcherInterface- The event dispatcher
$options
— array- The form options
Errors/Exceptions
-
InvalidArgumentException
- If the data class is not a valid class or if