Stopwatch::getSectionEvents()

StopwatchEvent[] getSectionEvents(string $id) Gets all events for a given section. Parameters string $id A section identifier Return Value StopwatchEvent[] An array of StopwatchEvent instances

AbstractExtension::getPseudoClassTranslators()

callable[] getPseudoClassTranslators() Returns pseudo-class translators. Return Value callable[]

RedirectController::urlRedirectAction()

Response urlRedirectAction(Request $request, string $path, bool $permanent = false, string|null $scheme = null, int|null $httpPort = null, int|null $httpsPort = null) Redirects to a URL. The response status code is 302 if the permanent parameter is false (default), and 301 if the redirection is permanent. In case the path is empty, the status code will be 404 when permanent is false and 410 otherwise. Parameters Request $request The request instance string $path The absolute p

GuardAuthenticatorInterface::onAuthenticationSuccess()

Response|null onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey) Called when authentication executed and was successful! This should return the Response sent back to the user, like a RedirectResponse to the last page they visited. If you return null, the current request will continue, and the user will be authenticated. This makes sense, for example, with an API. Parameters Request $request TokenInterface $token string $providerKey The prov

YamlFilesLoader

class YamlFilesLoader extends FilesLoader Loads validation metadata from a list of YAML files. Methods __construct(array $paths) Creates a new loader. from FilesLoader bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. from LoaderChain getFileLoaderInstance($file) {@inheritdoc} Details __construct(array $paths) Creates a new loader. Parameters array $paths An array of file

Component\Validator

Namespaces Symfony\Component\Validator\ConstraintsSymfony\Component\Validator\ExceptionSymfony\Component\Validator\Mapping Classes Constraint Contains the properties of a constraint definition. ConstraintValidator Base class for constraint validators ConstraintValidatorFactory Default implementation of the ConstraintValidatorFactoryInterface. ConstraintViolation Default implementation of {@ConstraintViolationInterface}. ConstraintViolationList Default implementation of {@Co

MethodNotAllowedException

class MethodNotAllowedException extends RuntimeException implements ExceptionInterface The resource was found but the request method is not allowed. This exception should trigger an HTTP 405 response in your application code. Methods __construct(array $allowedMethods, $message = null, $code, Exception $previous = null) array getAllowedMethods() Gets the allowed HTTP methods. Details __construct(array $allowedMethods, $message = null, $code, Exceptio

TranslationType::setDefaultOptions()

setDefaultOptions(OptionsResolverInterface $resolver) Sets the default options for this type. Parameters OptionsResolverInterface $resolver The resolver for the options.

FormConfigInterface

interface FormConfigInterface The configuration of a {@link Form} object. Methods EventDispatcherInterface getEventDispatcher() Returns the event dispatcher used to dispatch form events. string getName() Returns the name of the form used as HTTP parameter. null|PropertyPathInterface getPropertyPath() Returns the property path that the form should be mapped to. bool getMapped() Returns whether the form should be mapped to an element of its parent's data. bool getByRefe

ValidatorBuilderInterface::setMetadataCache()

ValidatorBuilderInterface setMetadataCache(CacheInterface $cache) Sets the cache for caching class metadata. Parameters CacheInterface $cache The cache instance Return Value ValidatorBuilderInterface The builder object