TwigExtractor

class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface TwigExtractor extracts translation messages from a twig template. Methods __construct(Twig_Environment $twig) extract(string|array $resource, MessageCatalogue $catalogue) Extracts translation messages from files, a file or a directory to the catalogue. setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Details __construct(Twig_Envi

FormConfigBuilderInterface::setRequestHandler()

FormConfigBuilderInterface setRequestHandler(RequestHandlerInterface $requestHandler) Sets the request handler used by the form. Parameters RequestHandlerInterface $requestHandler Return Value FormConfigBuilderInterface The configuration object

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