Component\Templating\Storage

Classes FileStorage FileStorage represents a template stored on the filesystem. Storage Storage is the base class for all storage classes. StringStorage StringStorage represents a template stored in a string.

FormRendererInterface::humanize()

string humanize(string $text) Makes a technical name human readable. Sequences of underscores are replaced by single spaces. The first letter of the resulting string is capitalized, while all other letters are turned to lowercase. Parameters string $text The text to humanize Return Value string The humanized text

Definition::setLazy()

Definition setLazy(bool $lazy) Sets the lazy flag of this service. Parameters bool $lazy Return Value Definition The current instance

LanguageDataProvider::getLanguages()

getLanguages()

DayTransformer::format()

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

RequestContext::setParameters()

RequestContext setParameters(array $parameters) Sets the parameters. Parameters array $parameters The parameters Return Value RequestContext The current instance, implementing a fluent interface

FormConfigBuilder::getData()

mixed getData() Returns the initial data of the form. Return Value mixed The initial form data

Serializer::deserialize()

final object deserialize(mixed $data, string $type, string $format, array $context = array()) Deserializes data into the given type. Parameters mixed $data string $type string $format array $context Return Value object

ExecutionContext deprecated::validate()

validate(mixed $value, string $subPath = '', null|string|string[] $groups = null, bool $traverse = false, bool $deep = false) Validates the given value within the scope of the current validation. The value may be any value recognized by the used metadata factory (see {@link MetadataFactoryInterface::getMetadata}), or an array or a traversable object of such values. Usually you validate a value that is not the current node of the execution context. For this case, you can pass the {@li

ConstraintViolationBuilderInterface::setCode()

ConstraintViolationBuilderInterface setCode(string|null $code) Sets the violation code. Parameters string|null $code The violation code Return Value ConstraintViolationBuilderInterface This builder