InsufficientAuthenticationException

class InsufficientAuthenticationException extends AuthenticationException InsufficientAuthenticationException is thrown if the user credentials are not sufficiently trusted. This is the case when a user is anonymous and the resource to be displayed has an access role. Methods TokenInterface getToken() Get the token. from AuthenticationException setToken(TokenInterface $token) Set the token. from AuthenticationException serialize() from AuthenticationException unserialize($st

EntityChoiceList deprecated::getIndicesForValues()

array getIndicesForValues(array $values) deprecated deprecated since version 2.4, to be removed in 3.0. Returns the entities corresponding to the given values. Parameters array $values An array of choice values. Not existing values in this array are ignored Return Value array An array of indices with ascending, 0-based numeric keys See also ChoiceListInterface

ChoiceQuestion::setMultiselect()

ChoiceQuestion setMultiselect(bool $multiselect) Sets multiselect option. When multiselect is set to true, multiple choices can be answered. Parameters bool $multiselect Return Value ChoiceQuestion The current instance

ChoiceListInterface deprecated::getRemainingViews()

array getRemainingViews() Returns the choice views of the choices that are not preferred as nested array with the choice groups as top-level keys. Example: array( 'Group 1' => array( 10 => ChoiceView object, 20 => ChoiceView object, ), 'Group 2' => array( 30 => ChoiceView object, ), ) Return Value array A nested array containing the views with the corresponding choice indices as keys on the lowest levels and the choice group names in the keys of the higher leve

FormConfigBuilderInterface::setErrorBubbling()

FormConfigBuilderInterface setErrorBubbling(bool $errorBubbling) Sets whether errors bubble up to the parent. Parameters bool $errorBubbling Return Value FormConfigBuilderInterface The configuration object

RangeType

class RangeType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. from AbstractType string getBlockPrefix() Returns

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

TableHelper deprecated::setPaddingChar()

TableHelper setPaddingChar(string $paddingChar) Sets padding character, used for cell padding. Parameters string $paddingChar Return Value TableHelper

AuthenticationTrustResolver

class AuthenticationTrustResolver implements AuthenticationTrustResolverInterface The default implementation of the authentication trust resolver. Methods __construct(string $anonymousClass, string $rememberMeClass) Constructor. bool isAnonymous(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated anonymously. bool isRememberMe(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated using remembe

DateTimeToStringTransformer

class DateTimeToStringTransformer extends BaseDateTimeTransformer Transforms between a date string and a DateTime object. Methods __construct(string $inputTimezone = null, string $outputTimezone = null, string $format = 'Y-m-d H:i:s', bool $parseUsingPipe = true) Transforms a \DateTime instance to a string. mixed transform(DateTimeInterface $dateTime) Transforms a DateTime object into a date string with the configured format and timezone. mixed reverseTransform(mixed $value) Tr