added compatibility for Symfony's latest dev branch