In this entry, I will try to explain what is a Service Container and how is it used as simple as I can.
Well I just mean I’ll try to define what is a service container without the use of frameworks.
The idea of the service container is we instantiate or set up all our services and place it in the service container for later use.
In other frameworks like Laravel, the setup is done in Service Providers and these Service Providers are then used by the Service Container know of the services you want to set up.
Now that we have our service container, we can now just use it as a single source of truth where our services will come from.