class PackageManifest (View source)

Properties

Filesystem $files

The filesystem instance.

string $basePath

The base path.

string $vendorPath

The vendor path.

string|null $manifestPath

The manifest path.

array $manifest

The loaded manifest array.

Methods

void
__construct(Filesystem $files, string $basePath, string $manifestPath)

Create a new package manifest instance.

array
providers()

Get all of the service provider class names for all packages.

array
aliases()

Get all of the aliases for all packages.

array
config(string $key)

Get all of the values for all packages for the given configuration name.

array
getManifest()

Get the current package manifest.

void
build()

Build the manifest and write it to disk.

string
format(string $package)

Format the given package name.

array
packagesToIgnore()

Get all of the package names that should be ignored.

void
write(array $manifest)

Write the given manifest array to disk.

Details

void __construct(Filesystem $files, string $basePath, string $manifestPath)

Create a new package manifest instance.

Parameters

Filesystem $files
string $basePath
string $manifestPath

Return Value

void

array providers()

Get all of the service provider class names for all packages.

Return Value

array

array aliases()

Get all of the aliases for all packages.

Return Value

array

array config(string $key)

Get all of the values for all packages for the given configuration name.

Parameters

string $key

Return Value

array

protected array getManifest()

Get the current package manifest.

Return Value

array

void build()

Build the manifest and write it to disk.

Return Value

void

protected string format(string $package)

Format the given package name.

Parameters

string $package

Return Value

string

protected array packagesToIgnore()

Get all of the package names that should be ignored.

Return Value

array

protected void write(array $manifest)

Write the given manifest array to disk.

Parameters

array $manifest

Return Value

void

Exceptions

Exception