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

DefaultTranslator deprecated::setLocale()

setLocale(string $locale) Not supported. Parameters string $locale The locale Exceptions BadMethodCallException

DefaultTranslator deprecated::getLocale()

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

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

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

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

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::createView()

ChoiceListView createView(ChoiceListInterface $list, null|array|callable $preferredChoices = null, null|callable $label = null, null|callable $index = null, null|callable $groupBy = null, null|array|callable $attr = null) Creates a view for the given choice list. Callables may be passed for all optional arguments. The callables receive the choice as first and the array key as the second argument. The callable for the label and the name should return the generated label/choice na