Services (PHP library)

Services is a PHP library that provides a generic service container to manage named services using lazy instantiation based on instantiator callback functions. It powers MediaWiki's dependency injection through. The library is also compatible with the PSR-11 Container Interface.