TrueValidator deprecated

class TrueValidator extends IsTrueValidator deprecated since version 2.7, to be removed in 3.0. Use IsTrueValidator instead. 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) Check

True deprecated

class True extends IsTrue deprecated since version 2.7, to be removed in 3.0. Use IsTrue instead. 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. NOT_TRUE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the const

TrimListener::preSubmit()

preSubmit(FormEvent $event) Parameters FormEvent $event

TrimListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

TrimListener

class TrimListener implements EventSubscriberInterface Trims string data. Methods preSubmit(FormEvent $event) static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. Details preSubmit(FormEvent $event) Parameters FormEvent $event static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are

TreeBuilder::root()

ArrayNodeDefinition|NodeDefinition root(string $name, string $type = 'array', NodeBuilder $builder = null) Creates the root node. Parameters string $name The name of the root node string $type The type of the root node NodeBuilder $builder A custom node builder instance Return Value ArrayNodeDefinition|NodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array') Exceptions RuntimeException When the node type is not supported

TreeBuilder::buildTree()

NodeInterface buildTree() Builds the tree. Return Value NodeInterface Exceptions RuntimeException

TreeBuilder

class TreeBuilder implements NodeParentInterface This is the entry class for building a config tree. Methods ArrayNodeDefinition|NodeDefinition root(string $name, string $type = 'array', NodeBuilder $builder = null) Creates the root node. NodeInterface buildTree() Builds the tree. Details ArrayNodeDefinition|NodeDefinition root(string $name, string $type = 'array', NodeBuilder $builder = null) Creates the root node. Parameters string $na

Traverse::getTargets()

string|array getTargets() Returns whether the constraint can be put onto classes, properties or both. This method should return one or more of the constants Constraint::CLASSCONSTRAINT and Constraint::PROPERTYCONSTRAINT. Return Value string|array One or more constant values

Traverse::getDefaultOption()

string getDefaultOption() Returns the name of the default option. Override this method to define a default option. Return Value string