Updated for Symfony 2.4 and added param handler