Category: symfony-3.4

Validate optional input GET parameters passed in through the querystring as integers in Symfony 3.4

In Symfony 3.4, is there a way to validate optional input GET parameters passed in through the querystring as integers? If provided, I am using the $ownerId and $courseId to query the corresponding repositories, however the value needs to be…

Validating URL params when using the FrameworkExtraBundle to get an entity in Symfony 3.4 application

Is there a way I can validate the URL params being passed in to my route? If I try and hit this route with /resume-session/crmpicco1872/kdsjfslk/rfc/three for example Symfony throws a HTTP 500 because i’m giving it an owner id of…