[ticket/12575] Use a proxy pattern in \phpbb\di\service_collection

Load the services referenced in a service_collection only when
they are used to avoid to load some unsuded services.

https://tracker.phpbb.com/browse/PHPBB3-12575

PHPBB3-12575
I would prefer to have the the ignore statement around this statement and the comment in front of it instead of outside the method.