ProviderRepository

class ProviderRepository (View source)

Properties

protected Application $app The application implementation.
protected Filesystem $files The filesystem instance.
protected string $manifestPath The path to the manifest file.

Methods

void __construct(Application $app, Filesystem $files, string $manifestPath)

Create a new service repository instance.

void load(array $providers)

Register the application service providers.

array|null loadManifest()

Load the service provider manifest JSON file.

bool shouldRecompile(array $manifest, array $providers)

Determine if the manifest should be compiled.

void registerLoadEvents(string $provider, array $events)

Register the load events for the given provider.

array compileManifest(array $providers)

Compile the application service manifest file.

array freshManifest(array $providers)

Create a fresh service manifest data structure.

array writeManifest(array $manifest)

Write the service manifest file to disk.

ServiceProvider createProvider(string $provider)

Create a new provider instance.

Details

void __construct(Application $app, Filesystem $files, string $manifestPath)

Create a new service repository instance.

Parameters

Application $app
Filesystem $files
string $manifestPath

Return Value

void

void load(array $providers)

Register the application service providers.

Parameters

array $providers

Return Value

void

array|null loadManifest()

Load the service provider manifest JSON file.

Return Value

array|null

bool shouldRecompile(array $manifest, array $providers)

Determine if the manifest should be compiled.

Parameters

array $manifest
array $providers

Return Value

bool

protected void registerLoadEvents(string $provider, array $events)

Register the load events for the given provider.

Parameters

string $provider
array $events

Return Value

void

protected array compileManifest(array $providers)

Compile the application service manifest file.

Parameters

array $providers

Return Value

array

protected array freshManifest(array $providers)

Create a fresh service manifest data structure.

Parameters

array $providers

Return Value

array

array writeManifest(array $manifest)

Write the service manifest file to disk.

Parameters

array $manifest

Return Value

array

Exceptions

Exception

ServiceProvider createProvider(string $provider)

Create a new provider instance.

Parameters

string $provider

Return Value

ServiceProvider

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Foundation/ProviderRepository.html