ExecutionContext::getValidator()

ValidatorInterface getValidator() Returns the validator. Useful if you want to validate additional constraints: public function validate($value, Constraint $constraint) { $validator = $this->context->getValidator(); $violations = $validator->validateValue($value, new Length(array('min' => 3))); if (count($violations) > 0) { // ... } } Return Value ValidatorInterface

Session::setName()

setName(string $name) Sets the session name. Parameters string $name

ErrorHandler::throwAt()

int throwAt(int $levels, bool $replace = false) Sets the PHP error levels that throw an exception when a PHP error occurs. Parameters int $levels A bit field of E_* constants for thrown errors bool $replace Replace or amend the previous value Return Value int The previous value

Form::getParent()

FormInterface|null getParent() Returns the parent form. Return Value FormInterface|null The parent form or null if there is none

AddRequestFormatsListener::onKernelRequest()

onKernelRequest(GetResponseEvent $event) Adds request formats. Parameters GetResponseEvent $event

SerializerAwareNormalizer deprecated

class SerializerAwareNormalizer implements SerializerAwareInterface deprecated since version 3.1, to be removed in 4.0. Use the SerializerAwareTrait instead. SerializerAware Normalizer implementation. Traits SerializerAwareTrait SerializerAware trait. Methods setSerializer(SerializerInterface $serializer) Sets the serializer. from SerializerAwareTrait Details setSerializer(SerializerInterface $serializer) Sets the serializer. Parame

PropertyMetadataInterface deprecated::getPropertyName()

string getPropertyName() Returns the name of the property. Return Value string The property name.

LoggerInterface deprecated::warn()

warn($message, array $context = array()) deprecated deprecated since version 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible. Parameters $message array $context

Route::getMethods()

array getMethods() Returns the uppercased HTTP methods this route is restricted to. So an empty array means that any method is allowed. Return Value array The methods

Request::getUserInfo()

string getUserInfo() Gets the user info. Return Value string A user name and, optionally, scheme-specific information about how to gain authorization to access the server