Service Container¶
A service container is a design pattern used in software development to manage and provide services as dependencies.
Instead of creating objects manually all over the code, the container build and supply them when needed. This class is a part of dependency injection.
Services can be used across different parts of an application, reducing code duplication.
See also Service Container in Symfony, Service Container in Laravel and Service Container.
Related : Encapsulation, Dependency Injection, Service