fixed compatibility with Symfony 2.1/2.2

fixes #67 and #66