class ProviderList (View source)

Methods

__construct(Application $app)

No description

registerProvider(string $class)

Loads and registers a class ServiceProvider class.

createInstance(string $class)

Creates an instance of the passed class string, override this to change how providers are instantiated.

registerProviders(array $groups)

Registers an array of service group classes.

__sleep()

We are not allowed to serialize $this->app.

Details

__construct(Application $app)

No description

Parameters

Application $app

registerProvider(string $class)

Loads and registers a class ServiceProvider class.

Parameters

string $class

protected Provider createInstance(string $class)

Creates an instance of the passed class string, override this to change how providers are instantiated.

Parameters

string $class

The class name

Return Value

Provider

registerProviders(array $groups)

Registers an array of service group classes.

Parameters

array $groups

__sleep()

We are not allowed to serialize $this->app.