Documentation

ServiceProviderInterface

Interface for service providers that register services in the container.

Service providers are a way to organize service registration and bootstrapping logic.

Tags
since
3.0.0

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


        
On this page

Search results