Made to work for Symfony 2.6.3

Previous version resulted in fatal error when attempting to invoke non-existing function