fixed compatibility with Symfony 2.2 (closes #22)