ExecutionContext::getObject()

object|null getObject() Returns the currently validated object. If the validator is currently validating a class constraint, the object of that class is returned. If it is a validating a property or getter constraint, the object that the property/getter belongs to is returned. In other cases, null is returned. Return Value object|null The currently validated object or null

Component\Templating

Namespaces Symfony\Component\Templating\AssetSymfony\Component\Templating\HelperSymfony\Component\Templating\LoaderSymfony\Component\Templating\Storage Classes DelegatingEngine DelegatingEngine selects an engine for a given template. PhpEngine PhpEngine is an engine able to render PHP templates. TemplateNameParser TemplateNameParser is the default implementation of TemplateNameParserInterface. TemplateReference Internal representation of a template. Interfaces DebuggerInter

ConfigDataCollector::hasXDebug()

bool hasXDebug() Returns true if the XDebug is enabled. Return Value bool true if XDebug is enabled, false otherwise

ExecutionContextInterface::getViolations()

ConstraintViolationListInterface getViolations() Returns the violations generated by the validator so far. Return Value ConstraintViolationListInterface The constraint violation list

MetadataInterface::getTraversalStrategy()

int getTraversalStrategy() Returns the strategy for traversing traversable objects. Return Value int The traversal strategy See also TraversalStrategy

MetadataInterface::findConstraints()

Constraint[] findConstraints(string $group) Returns all constraints for a given validation group. Parameters string $group The validation group Return Value Constraint[] A list of constraint instances

FormConfigBuilderInterface::resetViewTransformers()

FormConfigBuilderInterface resetViewTransformers() Clears the view transformers. Return Value FormConfigBuilderInterface The configuration object

Process::enableOutput()

Process enableOutput() Enables fetching output and error output from the underlying process. Return Value Process Exceptions RuntimeException In case the process is already running

ExecutionContextInterface deprecated::getMetadataFactory()

MetadataFactoryInterface getMetadataFactory() deprecated deprecated since version 2.5, to be removed in 3.0. Use {@link Context\ExecutionContextInterface::getValidator()} instead and call {@link Validator\ValidatorInterface::getMetadataFor()} or {@link Validator\ValidatorInterface::hasMetadataFor()} there. Returns the used metadata factory. Return Value MetadataFactoryInterface The metadata factory.

Escaper::escapeWithSingleQuotes()

static string escapeWithSingleQuotes(string $value) Escapes and surrounds a PHP value with single quotes. Parameters string $value A PHP value Return Value string The quoted, escaped string