Documentation

ProviderRepository
in package

Table of Contents

$app  : Application
The application implementation.
$files  : Filesystem
The filesystem instance.
$manifestPath  : string
The path to the manifest file.
__construct()  : void
Create a new service repository instance.
createProvider()  : ServiceProvider
Create a new provider instance.
load()  : void
Register the application service providers.
loadManifest()  : array<string|int, mixed>|null
Load the service provider manifest JSON file.
shouldRecompile()  : bool
Determine if the manifest should be compiled.
writeManifest()  : array<string|int, mixed>
Write the service manifest file to disk.
compileManifest()  : array<string|int, mixed>
Compile the application service manifest file.
freshManifest()  : array<string|int, mixed>
Create a fresh service manifest data structure.
registerLoadEvents()  : void
Register the load events for the given provider.

Properties

Methods

load()

Register the application service providers.

public load(array<string|int, mixed> $providers) : void
Parameters
$providers : array<string|int, mixed>
Return values
void

loadManifest()

Load the service provider manifest JSON file.

public loadManifest() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

shouldRecompile()

Determine if the manifest should be compiled.

public shouldRecompile(array<string|int, mixed> $manifest, array<string|int, mixed> $providers) : bool
Parameters
$manifest : array<string|int, mixed>
$providers : array<string|int, mixed>
Return values
bool

writeManifest()

Write the service manifest file to disk.

public writeManifest(array<string|int, mixed> $manifest) : array<string|int, mixed>
Parameters
$manifest : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

compileManifest()

Compile the application service manifest file.

protected compileManifest(array<string|int, mixed> $providers) : array<string|int, mixed>
Parameters
$providers : array<string|int, mixed>
Return values
array<string|int, mixed>

freshManifest()

Create a fresh service manifest data structure.

protected freshManifest(array<string|int, mixed> $providers) : array<string|int, mixed>
Parameters
$providers : array<string|int, mixed>
Return values
array<string|int, mixed>

registerLoadEvents()

Register the load events for the given provider.

protected registerLoadEvents(string $provider, array<string|int, mixed> $events) : void
Parameters
$provider : string
$events : array<string|int, mixed>
Return values
void

Search results