Allow for greater Symfony2 compatibility (2.0 through 2.2)