Adapted paginator widget to Symfony 2.2