Regarding: http://symfony.com/doc/current/components/dependency_injection/factories.html under version 2.6 When using PHP to configure, it shows the use of the deprecated `setFactoryClass` and `setFactoryMethod`, instead of `setFactory`