Maybe you should add a little explanation about what you're doing. Something like:

````rst
Normally, you would retrieve the repository using the ``getRepository()`` method of the
entity manager. You can simulate this behaviour by configuring a factory method for the
repository service. See :doc:`/components/dependency_injection/factories` for more
information about factories.

To configure the PostRepository, use something like: