ValidatorBuilderInterface::getValidator()

ValidatorInterface getValidator() Builds and returns a new validator object. Return Value ValidatorInterface The built validator

Bundle\TwigBundle\DependencyInjection\Configurator

Classes EnvironmentConfigurator Twig environment configurator.

Translator::addResource()

addResource(string $format, mixed $resource, string $locale, string $domain = null) Adds a Resource. Parameters string $format The name of the loader (see addLoader()) mixed $resource The resource name string $locale The locale string $domain The domain Exceptions InvalidArgumentException If the locale contains invalid characters

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

BundleCompiler

class BundleCompiler implements BundleCompilerInterface Compiles .txt resource bundles to binary .res files. Methods __construct(string $genrb = 'genrb', string $envVars = '') Creates a new compiler based on the "genrb" executable. compile(string $sourcePath, string $targetDir) Compiles a resource bundle at the given source to the given target directory. Details __construct(string $genrb = 'genrb', string $envVars = '') Creates a new comp

Transformer::format()

abstract string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. Parameters DateTime $dateTime A DateTime object to be used to generate the formatted value int $length The formatted value string length Return Value string The formatted value

FormDataCollector::collectSubmittedData()

collectSubmittedData(FormInterface $form) Stores the submitted data of the given form and its children. Parameters FormInterface $form A root form

PropertyAccessor::setValue()

setValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value) Sets the value at the end of the property path of the object graph. Example: use Symfony\Component\PropertyAccess\PropertyAccess; $propertyAccessor = PropertyAccess::createPropertyAccessor(); echo $propertyAccessor->setValue($object, 'child.name', 'Fabien'); // equals echo $object->getChild()->setName('Fabien'); This method first tries to find a public setter for each property

JsonResponse::setEncodingOptions()

JsonResponse setEncodingOptions(int $encodingOptions) Sets options used while encoding data to JSON. Parameters int $encodingOptions Return Value JsonResponse

DisabledException

class DisabledException extends AccountStatusException DisabledException is thrown when the user account is disabled. Methods TokenInterface getToken() Get the token. from AuthenticationException setToken(TokenInterface $token) Set the token. from AuthenticationException serialize() from AccountStatusException unserialize($str) from AccountStatusException string getMessageKey() Message key to be used by the translation component. array getMessageData() Message data