Use new factory syntax

| Q   | A
| --- | ---
| Doc fix? | no
| New docs? | yes (https://github.com/symfony/symfony/pull/12008)
| Applies to | 2.6+
| Fixed tickets | #4291
this is wrong. It should be the class name, not the method name.