Symfony2.4+ compat

see https://github.com/symfony/symfony/commit/8cd8ec001aa7e750871558d7253427d28ab915e2#diff-b1846de60f5a42e8aef1e3aa69649368R148