ValidationListener

class ValidationListener implements EventSubscriberInterface Methods static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. __construct(ValidatorInterface $validator, ViolationMapperInterface $violationMapper) validateForm(FormEvent $event) Validates the form and its domain object. Details static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to

AuthenticatedVoter

class AuthenticatedVoter implements VoterInterface AuthenticatedVoter votes if an attribute like ISAUTHENTICATEDFULLY, ISAUTHENTICATEDREMEMBERED, or ISAUTHENTICATEDANONYMOUSLY is present. This list is most restrictive to least restrictive checking. Constants IS_AUTHENTICATED_FULLY IS_AUTHENTICATED_REMEMBERED IS_AUTHENTICATED_ANONYMOUSLY Methods __construct(AuthenticationTrustResolverInterface $authenticationTrustResolver) Constructor. int vote(TokenInterface $token, mi

ValidatorInterface deprecated::validateValue()

ConstraintViolationListInterface validateValue(mixed $value, Constraint|Constraint[] $constraints, array|null $groups = null) deprecated deprecated since version 2.5, to be removed in 3.0. Renamed to {@link Validator\ValidatorInterface::validate()} in Symfony 2.5. Validates a value against a constraint or a list of constraints. Parameters mixed $value The value to validate. Constraint|Constraint[] $constraints The constraint(s) to validate against. array|null $groups The v

ContextualValidatorInterface::validatePropertyValue()

ContextualValidatorInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null) Validates a value against the constraints specified for an object's property. Parameters object|string $objectOrClass The object or its class name string $propertyName The name of the property mixed $value The value to validate against the property's constraints array|null $groups The validation groups to validate. If none is given, "D

QuestionHelper::setInputStream()

setInputStream(resource $stream) Sets the input stream to read from when interacting with the user. This is mainly useful for testing purpose. Parameters resource $stream The input stream Exceptions InvalidArgumentException In case the stream is not a resource

ConstraintViolationList::offsetExists()

offsetExists($offset) {@inheritdoc} Parameters $offset

RequestContext::setHost()

RequestContext setHost(string $host) Sets the HTTP host. Parameters string $host The HTTP host Return Value RequestContext The current instance, implementing a fluent interface

AclProvider::findAcls()

SplObjectStorage findAcls(array $oids, array $sids = array()) Returns the ACLs that belong to the given object identities Parameters array $oids an array of ObjectIdentityInterface implementations array $sids an array of SecurityIdentityInterface implementations Return Value SplObjectStorage mapping the passed object identities to ACLs Exceptions AclNotFoundException when we cannot find an ACL for all identities

MessageCatalogue::has()

bool has(string $id, string $domain = 'messages') Checks if a message has a translation. Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise

RegionBundleInterface::getCountryName()

string|null getCountryName(string $country, string $displayLocale = null) Returns the name of a country. Parameters string $country A country code (e.g. "US") string $displayLocale Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the country or NULL if not found