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
I confused quite a lot of arguments, thanks for checking them stof!