ProviderRepository

class ProviderRepository (View source)

Properties

protected Filesystem $files The filesystem instance.
protected string $manifestPath The path to the manifest.
protected array $default Default manifest structure.

Methods

void __construct(Filesystem $files, string $manifestPath)

Create a new service repository instance.

void load(Application $app, array $providers)

Register the application service providers.

void registerLoadEvents(Application $app, string $provider, array $events)

Register the load events for the given provider.

array compileManifest(Application $app, array $providers)

Compile the application manifest file.

ServiceProvider createProvider(Application $app, string $provider)

Create a new provider instance.

bool shouldRecompile(array $manifest, array $providers)

Determine if the manifest should be compiled.

array loadManifest()

Load the service provider manifest JSON file.

array writeManifest(array $manifest)

Write the service manifest file to disk.

array freshManifest(array $providers)

Create a fresh manifest array.

Filesystem getFilesystem()

Get the filesystem instance.

Details

void __construct(Filesystem $files, string $manifestPath)

Create a new service repository instance.

Parameters

Filesystem $files
string $manifestPath

Return Value

void

void load(Application $app, array $providers)

Register the application service providers.

Parameters

Application $app
array $providers

Return Value

void

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

Register the load events for the given provider.

Parameters

Application $app
string $provider
array $events

Return Value

void

protected array compileManifest(Application $app, array $providers)

Compile the application manifest file.

Parameters

Application $app
array $providers

Return Value

array

ServiceProvider createProvider(Application $app, string $provider)

Create a new provider instance.

Parameters

Application $app
string $provider

Return Value

ServiceProvider

bool shouldRecompile(array $manifest, array $providers)

Determine if the manifest should be compiled.

Parameters

array $manifest
array $providers

Return Value

bool

array loadManifest()

Load the service provider manifest JSON file.

Return Value

array

array writeManifest(array $manifest)

Write the service manifest file to disk.

Parameters

array $manifest

Return Value

array

protected array freshManifest(array $providers)

Create a fresh manifest array.

Parameters

array $providers

Return Value

array

Filesystem getFilesystem()

Get the filesystem instance.

Return Value

Filesystem

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