public function validate(NavitiaRequestInterface $request)
    {
        $validator = Validation::createValidatorBuilder()
            ->enableAnnotationMapping()
            ->getValidator();
        $violations = $validator->validate($request->processParameters());
        return $violations;
    }
public function validate(NavitiaRequestInterface $request)
    {
        $validator = Validation::createValidatorBuilder()
            ->enableAnnotationMapping()
            ->getValidator();
        $violations = $validator->validate($request->processParameters());
        return $violations;
    }
public function validate ( NavitiaRequestInterface $ request ) { $ validator = Validation :: createValidatorBuilder ( ) -> enableAnnotationMapping ( ) -> getValidator ( ) ; $ violations = $ validator -> validate ( $ request -> processParameters ( ) ) ; return $ violations ; }
Permet de valider une requete avec les contraintes en annotations

@param \Navitia\Component\Request\NavitiaRequestInterface $request
@return \Symfony\Component\Validator\ConstraintViolationListInterface
Permet de valider une requete avec les contraintes en annotations