config/providers.pyfile, you will find a
PROVIDERSlist which contains all the Service Providers involved in building the framework.
app/providers/DashboardProvider.py. This new Service Provider will have two simple methods, a
registermethod and a
bootmethod. We'll explain both in detail.
Usermodel into the container. There are three key features we have to go into detail here.
registermethod, it's important that we only bind things into the container. When the provider is first registered to the container, the register method is ran and your classes will be registered to the container.
This will be exactly the same as above. Notice that the
bootmethod is resolved by the container.