Updated for >= symfony 2.3
Support both symfony 2.0 and 2.3
Merge pull request #74 from MAGZine/master

Fix compatibility with Symfony 2.3