Manual:MediaWikiServices.php

See Dependency Injection.