PropertyAccessDecorator::createListFromLoader()

ChoiceListInterface createListFromLoader(ChoiceLoaderInterface $loader, null|callable $value = null) Creates a choice list that is loaded with the given loader. 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 ChoiceLoaderInterface $loader The choice loader null|callable $value The callable generating the choice values Return Value ChoiceListInterface The choice

PasswordType

class PasswordType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of the template bloc

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

DataCollectorExtension

class DataCollectorExtension extends AbstractExtension Extension for collecting data of the forms on a page. 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 whether t

ArgumentMetadataFactoryInterface

interface ArgumentMetadataFactoryInterface Builds method argument data. Methods ArgumentMetadata[] createArgumentMetadata(mixed $controller) Details ArgumentMetadata[] createArgumentMetadata(mixed $controller) Parameters mixed $controller The controller to resolve the arguments for Return Value ArgumentMetadata[]

ResolvedFormTypeFactory

class ResolvedFormTypeFactory implements ResolvedFormTypeFactoryInterface Methods ResolvedFormTypeInterface createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null) Resolves a form type. Details ResolvedFormTypeInterface createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null) Resolves a form type. Parameters FormTypeInterface $type array $t

AuthenticationEvent

class AuthenticationEvent extends Event This is a general purpose authentication event. Methods Boolean isPropagationStopped() Returns whether further event listeners should be triggered. from Event stopPropagation() Stops the propagation of the event to further event listeners. from Event setDispatcher(EventDispatcherInterface $dispatcher) Stores the EventDispatcher that dispatches this Event from Event EventDispatcherInterface getDispatcher() Returns the EventDispatcher tha

Definition::setClass()

Definition setClass(string $class) Sets the service class. Parameters string $class The service class Return Value Definition The current instance

Command::addOption()

Command addOption(string $name, string $shortcut = null, int $mode = null, string $description = '', mixed $default = null) Adds an option. Parameters string $name The option name string $shortcut The shortcut (can be null) int $mode The option mode: One of the InputOption::VALUE_* constants string $description A description text mixed $default The default value (must be null for InputOption::VALUE_NONE) Return Value Command The current instance

Command deprecated::getErrorHandler()

Closure|null getErrorHandler() Return Value Closure|null