ServiceProviderInterface
in
Interface for service providers that register services in the container.
Service providers are a way to organize service registration and bootstrapping logic.
Tags
Table of Contents
Methods
- boot() : void
- Bootstrap any application services.
- register() : void
- Register services in the container.
Methods
boot()
Bootstrap any application services.
public
boot(Container $container) : void
This method is called after all providers have been registered.
Parameters
- $container : Container
-
The DI container
register()
Register services in the container.
public
register(Container $container) : void
This method is called during application bootstrap.
Parameters
- $container : Container
-
The DI container