MergeCollectionListener

class MergeCollectionListener implements EventSubscriberInterface Methods __construct(bool $allowAdd = false, bool $allowDelete = false) Creates a new listener. static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. onSubmit(FormEvent $event) Details __construct(bool $allowAdd = false, bool $allowDelete = false) Creates a new listener. Parameters bool $allowAdd Whether values might be

PercentToLocalizedStringTransformer::transform()

mixed transform(mixed $value) Transforms between a normalized format (integer or float) into a percentage value. Parameters mixed $value The value in the original representation Return Value mixed The value in the transformed representation Exceptions TransformationFailedException If the given value is not numeric or if the value could not be transformed.

FrameworkBundle::boot()

boot() Boots the Bundle.

Request::hasPreviousSession()

bool hasPreviousSession() Whether the request contains a Session which was started in one of the previous requests. Return Value bool

Route::setHost()

setHost($pattern) Parameters $pattern

ArrayChoiceList::getValuesForChoices()

string[] getValuesForChoices(array $choices) Returns the values corresponding to the given choices. The values are returned with the same keys and in the same order as the corresponding choices in the given array. Parameters array $choices An array of choices. Non-existing choices in this array are ignored Return Value string[] An array of choice values

StringUtils deprecated::safeStrlen()

static int safeStrlen(string $string) Returns the number of bytes in a string. Parameters string $string The string whose length we wish to obtain Return Value int

SessionInterface::getId()

string getId() Returns the session ID. Return Value string The session ID

OptionsResolverInterface deprecated::isKnown()

bool isKnown(string $option) Returns whether an option is known. An option is known if it has been passed to either {@link setDefaults()}, {@link setRequired()} or {@link setOptional()} before. Parameters string $option The name of the option. Return Value bool Whether the option is known.

Form::isRequired()

bool isRequired() Returns whether the form is required to be filled out. If the form has a parent and the parent is not required, this method will always return false. Otherwise the value set with setRequired() is returned. Return Value bool