GenericEvent::setArgument()

GenericEvent setArgument(string $key, mixed $value) Add argument to event. Parameters string $key Argument name mixed $value Value Return Value GenericEvent

ImmutableEventDispatcher::addListener()

addListener(string $eventName, callable $listener, int $priority) Adds an event listener that listens on the specified events. Parameters string $eventName The event to listen on callable $listener The listener int $priority The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0)

NodeExtension::hasFlag()

bool hasFlag(int $flag) Parameters int $flag Return Value bool

TranslationDumperPass

class TranslationDumperPass implements CompilerPassInterface Adds tagged translation.formatter services to translation writer. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

CsrfProviderInterface 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

RecursiveContextualValidator::validate()

ContextualValidatorInterface validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. Parameters mixed $value The value to validate Constraint|Constraint[] $constraints The constraint(s) to validate against array|null $groups The validation groups to validate. If non

Scope deprecated

class Scope implements ScopeInterface deprecated since version 2.8, to be removed in 3.0. Scope class. Methods __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER) getName() getParentName() Details __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER) Parameters $name $parentName getName() getParentName()

UserProviderInterface::loadUserByUsername()

UserInterface loadUserByUsername(string $username) Loads the user for the given username. This method must throw UsernameNotFoundException if the user is not found. Parameters string $username The username Return Value UserInterface Exceptions UsernameNotFoundException if the user is not found

ContainerBuilder::findDefinition()

Definition findDefinition(string $id) Gets a service definition by id or alias. The method "unaliases" recursively to return a Definition instance. Parameters string $id The service identifier or alias Return Value Definition A Definition instance Exceptions ServiceNotFoundException if the service definition does not exist

DateTimeToRfc3339Transformer

class DateTimeToRfc3339Transformer extends BaseDateTimeTransformer Methods __construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. from BaseDateTimeTransformer mixed transform(DateTimeInterface $dateTime) Transforms a normalized date into a localized date. mixed reverseTransform(string $rfc3339) Transforms a formatted string following RFC 3339 into a normalized date. Details __construct(string $inputTimezone = null, st