ControllerNameParser

class ControllerNameParser ControllerNameParser converts controller from the short notation a:b:c (BlogBundle:Post:index) to a fully-qualified class::method string (Bundle\BlogBundle\Controller\PostController::indexAction). Methods __construct(KernelInterface $kernel) Constructor. string parse(string $controller) Converts a short notation a:b:c to a class::method. string build(string $controller) Converts a class::method notation to a short one (a:b:c). Details

Controller

class Controller implements ContainerAwareInterface Controller is a simple implementation of a Controller. It provides methods to common features needed in controllers. Traits ContainerAwareTrait ContainerAware trait. Methods setContainer(ContainerInterface $container = null) Sets the container. from ContainerAwareTrait Details setContainer(ContainerInterface $container = null) Sets the container. Parameters ContainerInterface $containe

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

ContextualValidatorInterface::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

ContextualValidatorInterface::getViolations()

ConstraintViolationListInterface getViolations() Returns the violations that have been generated so far in the context of the validator. Return Value ConstraintViolationListInterface The constraint violations

ContextualValidatorInterface::validateProperty()

ContextualValidatorInterface 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 ContextualValidatorInterface This validator

ContextualValidatorInterface

interface ContextualValidatorInterface A validator in a specific execution context. Methods ContextualValidatorInterface atPath(string $path) Appends the given path to the property path of the context. ContextualValidatorInterface validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null) Validates a value against a constraint or a list of constraints. ContextualValidatorInterface validateProperty(object $object, string $propertyName, array|n

ContextListener::onKernelResponse()

onKernelResponse(FilterResponseEvent $event) Writes the security token into the session. Parameters FilterResponseEvent $event A FilterResponseEvent instance

ContextualValidatorInterface::atPath()

ContextualValidatorInterface atPath(string $path) Appends the given path to the property path of the context. If called multiple times, the path will always be reset to the context's original path with the given path appended to it. Parameters string $path The path to append Return Value ContextualValidatorInterface This validator

ContextInterface::getBasePath()

string getBasePath() Gets the base path. Return Value string The base path