FlashBag::add()

add(string $type, string $message) Adds a flash message for type. Parameters string $type string $message

FlashBag

class FlashBag implements FlashBagInterface FlashBag flash message container. Methods __construct(string $storageKey = '_sf2_flashes') Constructor. string getName() Gets this bag's name. setName($name) initialize(array $flashes) Initializes the Bag. add(string $type, string $message) Adds a flash message for type. array peek(string $type, array $default = array()) Gets flash messages for a given type. array peekAll() Gets all flash messages. array get(

FlashBag::all()

array all() Gets and clears flashes from the stack. Return Value array

FixRadioInputListener deprecated::preBind()

preBind(FormEvent $event) deprecated deprecated since version 2.3, to be removed in 3.0. Use {@link preSubmit()} instead. Alias of {@link preSubmit()}. Parameters FormEvent $event

FixUrlProtocolListener

class FixUrlProtocolListener implements EventSubscriberInterface Adds a protocol to a URL if it doesn't already have one. Methods __construct(string|null $defaultProtocol = 'http') Constructor. onSubmit(FormEvent $event) static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. Details __construct(string|null $defaultProtocol = 'http') Constructor. Parameters string|null $defaultProtoco

FixRadioInputListener deprecated

class FixRadioInputListener implements EventSubscriberInterface deprecated since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\Extension\Core\DataMapper\RadioListMapper} instead. Takes care of converting the input from a single radio button to an array. Methods __construct(ChoiceListInterface $choiceList, bool $placeholderPresent) Constructor. preSubmit(FormEvent $event) preBind(FormEvent $event) deprecated Alias of {@link preSubmit()}. static ar

FixRadioInputListener deprecated::preSubmit()

preSubmit(FormEvent $event) Parameters FormEvent $event

FixRadioInputListener deprecated::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

FixUrlProtocolListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

FixCheckboxInputListener deprecated

class FixCheckboxInputListener implements EventSubscriberInterface deprecated since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\Extension\Core\DataMapper\CheckboxListMapper} instead. Takes care of converting the input from a list of checkboxes to a correctly indexed array. Methods __construct(ChoiceListInterface $choiceList) Constructor. preSubmit(FormEvent $event) preBind(FormEvent $event) deprecated Alias of {@link preSubmit()}. static array