Solution to Issue #3126 (symfony/symfony-docs)

Explained here: https://github.com/symfony/symfony-docs/issues/3126