DefaultTranslator deprecated::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Interpolates the given message. Parameters are replaced in the message in the same manner that {@link strtr()} uses. Example usage: $translator = new DefaultTranslator(); echo $translator->trans( 'This is a {{ var }}.', array('{{ var }}' => 'donkey') ); // -> This is a donkey. Parameters string $id The message id (may also be an object that can be ca

Shell deprecated

class Shell extends Shell deprecated since version 2.8, to be removed in 3.0. Shell. Methods __construct(Application $application) Constructor. from Shell run() Runs the shell. from Shell getProcessIsolation() from Shell setProcessIsolation($processIsolation) from Shell Details __construct(Application $application) Constructor. If there is no readline support for the current PHP executable a \RuntimeException exception is thro

Ssi::needsParsing()

bool needsParsing(Response $response) Checks that the Response needs to be parsed for Surrogate tags. Parameters Response $response A Response instance Return Value bool true if the Response needs to be parsed, false otherwise

DateTimeToTimestampTransformer

class DateTimeToTimestampTransformer extends BaseDateTimeTransformer Transforms between a timestamp and a DateTime object. Methods __construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. from BaseDateTimeTransformer mixed transform(DateTimeInterface $dateTime) Transforms a DateTime object into a timestamp in the configured timezone. mixed reverseTransform(mixed $value) Transforms a timestamp in the configured timezone into a DateTime object. Det

Bridge\Twig\NodeVisitor

Classes Scope TranslationDefaultDomainNodeVisitor TranslationDefaultDomainNodeVisitor. TranslationNodeVisitor TranslationNodeVisitor extracts translation messages.

TranslatorInterface::transChoice()

string transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given choice message by choosing a translation according to a number. Parameters string $id The message id (may also be an object that can be cast to string) int $number The number to use to find the indice of the message array $parameters An array of parameters for the message string|null $domain The domain for the message or null to u

Component\Intl\DateFormatter

Namespaces Symfony\Component\Intl\DateFormatter\DateFormat Classes IntlDateFormatter Replacement for PHP's native {@link \IntlDateFormatter} class.

MessageCatalogue::getMetadata()

mixed getMetadata(string $key = '', string $domain = 'messages') Gets metadata for the given domain and key. Passing an empty domain will return an array with all metadata indexed by domain and then by key. Passing an empty key will return an array with all metadata for the given domain. Parameters string $key The key string $domain The domain name Return Value mixed The value that was set or an array with the domains/keys or null

ConstraintViolationBuilderInterface::setInvalidValue()

ConstraintViolationBuilderInterface setInvalidValue(mixed $invalidValue) Sets the invalid value that caused this violation. Parameters mixed $invalidValue The invalid value Return Value ConstraintViolationBuilderInterface This builder

UriSigner::sign()

string sign(string $uri) Signs a URI. The given URI is signed by adding a _hash query string parameter which value depends on the URI and the secret. Parameters string $uri A URI to sign Return Value string The signed URI