Added support for Symfony version 2.5 or higher