Adding Symfony compatibility