CoreExtension

class CoreExtension extends AbstractExtension Represents the main form extension, which loads the core functionality. Methods FormTypeInterface getType(string $name) Returns a type by name. from AbstractExtension bool hasType(string $name) Returns whether the given type is supported. from AbstractExtension FormTypeExtensionInterface[] getTypeExtensions(string $name) Returns the extensions for the given type. from AbstractExtension bool hasTypeExtensions(string $name) Returns

ChoiceListFactoryInterface::createListFromChoices()

ChoiceListInterface createListFromChoices(array|Traversable $choices, null|callable $value = null) Creates a choice list for the given choices. The choices should be passed in the values of the choices array. Optionally, a callable can be passed for generating the choice values. The callable receives the choice as first and the array key as the second argument. Parameters array|Traversable $choices The choices null|callable $value The callable generating the choice values Ret

PasswordType::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

FlattenException deprecated

class FlattenException deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead. FlattenException wraps a PHP Exception to be able to serialize it. Basically, this class removes all objects from the trace. Methods static __callStatic($method, $args) __call($method, $args) Details static __callStatic($method, $args) Parameters $method $args __call($metho

GuardAuthenticationProvider::authenticate()

TokenInterface authenticate(TokenInterface $token) Finds the correct authenticator for the token and calls it. Parameters TokenInterface $token The TokenInterface instance to authenticate Return Value TokenInterface An authenticated TokenInterface instance, never null

DayOfYearTransformer deprecated

class DayOfYearTransformer extends DayOfYearTransformer deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\DateFormatter\DateFormat\DayOfYearTransformer} instead. Alias of {@link \Symfony\Component\Intl\DateFormatter\DateFormat\DayOfYearTransformer}. Methods string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. from DayOfYearTransformer string getReverseMatchingRegExp(int $length) Returns

LessThanOrEqualValidator

class LessThanOrEqualValidator extends AbstractComparisonValidator Validates values are less than or equal to the previous (<=). Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint)

GuardAuthenticationListener::handle()

handle(GetResponseEvent $event) Iterates over each authenticator to see if each wants to authenticate the request. Parameters GetResponseEvent $event

FormConfigBuilderInterface::addModelTransformer()

FormConfigBuilderInterface addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false) Prepends / appends a transformer to the normalization transformer chain. The transform method of the transformer is used to convert data from the model to the normalized format. The reverseTransform method of the transformer is used to convert from the normalized to the model format. Parameters DataTransformerInterface $modelTransformer bool $forceAppend if se

Client::getContainer()

ContainerInterface|null getContainer() Returns the container. Return Value ContainerInterface|null Returns null when the Kernel has been shutdown or not started yet