DefaultTranslator deprecated::getLocale()

string getLocale() Returns the locale of the translator. Return Value string The locale

DefaultTranslator deprecated::transChoice()

string transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = null) Interpolates the given choice message by choosing a variant according to a number. The variants are passed in the message ID using the format "|". "" is chosen if the passed $number is exactly 1. "" is chosen otherwise. This format is consistent with the format supported by {@link \Symfony\Component\Translation\Translator}, but it does not have the same

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

DefaultValueResolver

class DefaultValueResolver implements ArgumentValueResolverInterface Yields the default value defined in the action signature when no value has been given. Methods bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Details bool supports(Request $request, ArgumentMetadata $ar

DefaultCsrfProvider deprecated::generateCsrfToken()

string generateCsrfToken(string $intention) Generates a CSRF token for a page of your application. Parameters string $intention Some value that identifies the action intention (i.e. "authenticate"). Doesn't have to be a secret value. Return Value string The generated token

DefaultLogoutSuccessHandler

class DefaultLogoutSuccessHandler implements LogoutSuccessHandlerInterface Default logout success handler will redirect users to a configured path. Methods __construct(HttpUtils $httpUtils, string $targetUrl = '/') Response onLogoutSuccess(Request $request) Creates a Response object to send upon a successful logout. Details __construct(HttpUtils $httpUtils, string $targetUrl = '/') Parameters HttpUtils $httpUtils string $targetUrl

DefaultTranslator deprecated

class DefaultTranslator implements TranslatorInterface deprecated since version 2.7, to be removed in 3.0. Use Symfony\Component\Translation\IdentityTranslator instead. Simple translator implementation that simply replaces the parameters in the message IDs. Example usage: $translator = new DefaultTranslator(); echo $translator->trans( 'This is a {{ var }}.', array('{{ var }}' => 'donkey') ); // -> This is a donkey. echo $translator->transChoice( 'This is {{ cou

DefaultCsrfProvider deprecated::isCsrfTokenValid()

bool isCsrfTokenValid(string $intention, string $token) Validates a CSRF token. Parameters string $intention The intention used when generating the CSRF token string $token The token supplied by the browser Return Value bool Whether the token supplied by the browser is correct

DefaultCsrfProvider deprecated

class DefaultCsrfProvider implements CsrfProviderInterface deprecated since version 2.4, to be removed in 3.0. Use {@link \Symfony\Component\Security\Csrf\CsrfTokenManager} in combination with {@link \Symfony\Component\Security\Csrf\TokenStorage\NativeSessionTokenStorage} instead. Default implementation of CsrfProviderInterface. This provider uses the session ID returned by session_id() as well as a user-defined secret value to secure the CSRF token. Methods __construct(string $secre

DefaultChoiceListFactory

class DefaultChoiceListFactory implements ChoiceListFactoryInterface Default implementation of {@link ChoiceListFactoryInterface}. Methods ChoiceListInterface createListFromChoices(array|Traversable $choices, null|callable $value = null) Creates a choice list for the given choices. ChoiceListInterface createListFromLoader(ChoiceLoaderInterface $loader, null|callable $value = null) Creates a choice list that is loaded with the given loader. ChoiceListView createView(ChoiceListIn