Locale

class Locale extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_LOCALE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods static

BooleanNode

class BooleanNode extends ScalarNode This node represents a Boolean value in the config tree. Methods __construct(string $name, NodeInterface $parent = null) Constructor. from BaseNode setAttribute($key, $value) from BaseNode getAttribute($key, $default = null) from BaseNode hasAttribute($key) from BaseNode getAttributes() from BaseNode setAttributes(array $attributes) from BaseNode removeAttribute($key) from BaseNode setInfo(string $info) Sets an info m

XmlDumper

class XmlDumper extends Dumper XmlDumper dumps a service container as an XML string. Methods __construct(ContainerBuilder $container) from Dumper string dump(array $options = array()) Dumps the service container as an XML string. static string phpToXml(mixed $value) Converts php types to xml types. Details __construct(ContainerBuilder $container) Parameters ContainerBuilder $container The service container to dump

BaseNode::setNormalizationClosures()

setNormalizationClosures(array $closures) Sets the closures used for normalization. Parameters array $closures An array of Closures used for normalization

Form::getName()

string getName() Returns the name by which the form is identified in forms. Return Value string The name of the form

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