Added support of Symfony 2.3
Fix deprecation error
Merge pull request #13 from Koc/sf-23

Add compability with Symfony 2.3