DefaultChoiceListFactory::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

Request::setFormat()

setFormat(string $format, string|array $mimeTypes) Associates a format with mime types. Parameters string $format The format string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)

DumpExtension

class DumpExtension extends Twig_Extension Provides integration of the dump() function with Twig. Methods __construct(ClonerInterface $cloner) getFunctions() getTokenParsers() getName() dump(Twig_Environment $env, $context) Details __construct(ClonerInterface $cloner) Parameters ClonerInterface $cloner getFunctions() getTokenParsers()

ChoiceView deprecated

class ChoiceView deprecated since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\ChoiceList\View\ChoiceView} instead. Represents a choice in templates. Properties string $label The label displayed to humans. string $value The view representation of the choice. mixed $data The original choice value. Methods __construct(mixed $data, string $value, string $label) Creates a new ChoiceView. Details __construct(mixed $data,

GetterMetadata

class GetterMetadata extends MemberMetadata Stores all metadata needed for validating a class property via its getter method. A property getter is any method that is equal to the property's name, prefixed with either "get" or "is". That method will be used to access the property's value. The getter will be invoked by reflection, so the access of private and protected getters is supported. This class supports serialization and cloning. Properties Constraint[] $constraints from GenericMeta

Component\HttpKernel\Event

Classes FilterControllerEvent Allows filtering of a controller callable FilterResponseEvent Allows to filter a Response object GetResponseEvent Allows to create a response for a request GetResponseForControllerResultEvent Allows to create a response for the return value of a controller GetResponseForExceptionEvent Allows to create a response for a thrown exception KernelEvent Base class for events thrown in the HttpKernel component PostResponseEvent Allows to execute

ProxyCacheWarmer::isOptional()

Boolean isOptional() This cache warmer is not optional, without proxies fatal error occurs! Return Value Boolean true if the warmer is optional, false otherwise

RedisProfilerStorage deprecated::purge()

purge() Purges all data from the database.

AbstractDumper::setCharset()

string setCharset(string $charset) Sets the default character encoding to use for non-UTF8 strings. Parameters string $charset The default character encoding to use for non-UTF8 strings Return Value string The previous charset

Definition::setMethodCalls()

Definition setMethodCalls(array $calls = array()) Sets the methods to call after service initialization. Parameters array $calls An array of method calls Return Value Definition The current instance