RedirectController

class RedirectController implements ContainerAwareInterface Redirects a request to another URL. Traits ContainerAwareTrait ContainerAware trait. Methods setContainer(ContainerInterface $container = null) Sets the container. from ContainerAwareTrait Response redirectAction(Request $request, string $route, bool $permanent = false, bool|array $ignoreAttributes = false) Redirects to another route with the given name. Response urlRedirectAction(Request $request, string $path, b

RedirectableUrlMatcher

class RedirectableUrlMatcher extends UrlMatcher implements RedirectableUrlMatcherInterface Constants REQUIREMENT_MATCH REQUIREMENT_MISMATCH ROUTE_MATCH Methods __construct(RouteCollection $routes, RequestContext $context) Constructor. from UrlMatcher setContext(RequestContext $context) Sets the request context. from UrlMatcher RequestContext getContext() Gets the request context. from UrlMatcher array match(string $pathinfo) Tries to match a URL path with a set of

RedirectableUrlMatcher

class RedirectableUrlMatcher extends RedirectableUrlMatcher Constants REQUIREMENT_MATCH REQUIREMENT_MISMATCH ROUTE_MATCH Methods __construct(RouteCollection $routes, RequestContext $context) Constructor. from UrlMatcher setContext(RequestContext $context) Sets the request context. from UrlMatcher RequestContext getContext() Gets the request context. from UrlMatcher array match(string $pathinfo) Tries to match a URL path with a set of routes. from RedirectableUrlM

RedirectableUrlMatcherInterface

interface RedirectableUrlMatcherInterface RedirectableUrlMatcherInterface knows how to redirect the user. Methods array redirect(string $path, string $route, string|null $scheme = null) Redirects the user to another URL. Details array redirect(string $path, string $route, string|null $scheme = null) Redirects the user to another URL. Parameters string $path The path info to redirect to string $route The route name that matched string|null $sc

RecursiveValidator::validatePropertyValue()

ConstraintViolationListInterface 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

RecursiveValidator::validateProperty()

ConstraintViolationListInterface validateProperty(object $object, string $propertyName, array|null $groups = null) Validates a property of an object against the constraints specified for this property. Parameters object $object The object string $propertyName The name of the validated property array|null $groups The validation groups to validate. If none is given, "Default" is assumed Return Value ConstraintViolationListInterface A list of constraint violations If the list is

RecursiveValidator::getMetadataFor()

MetadataInterface getMetadataFor($object) Returns the metadata for the given value. Parameters $object Return Value MetadataInterface The metadata for the value Exceptions NoSuchMetadataException If no metadata exists for the given value

RecursiveValidator::inContext()

ContextualValidatorInterface inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context Return Value ContextualValidatorInterface The validator for that context

RecursiveValidator::hasMetadataFor()

bool hasMetadataFor($object) Returns whether the class is able to return metadata for the given value. Parameters $object Return Value bool Whether metadata can be returned for that value

RecursiveValidator::startContext()

ContextualValidatorInterface startContext($root = null) Starts a new validation context and returns a validator for that context. The returned validator collects all violations generated within its context. You can access these violations with the {@link ContextualValidatorInterface::getViolations()} method. Parameters $root Return Value ContextualValidatorInterface The validator for the new context