class DefaultProviders (View source)

Properties

protected array $providers

The current providers.

Methods

__construct(array|null $providers = null)

Create a new default provider collection.

merge(array $providers)

Merge the given providers into the provider collection.

replace(array $replacements)

Replace the given providers with other providers.

except(array $providers)

Disable the given providers.

array
toArray()

Convert the provider collection to an array.

Details

__construct(array|null $providers = null)

Create a new default provider collection.

Parameters

array|null $providers

DefaultProviders merge(array $providers)

Merge the given providers into the provider collection.

Parameters

array $providers

Return Value

DefaultProviders

DefaultProviders replace(array $replacements)

Replace the given providers with other providers.

Parameters

array $replacements

Return Value

DefaultProviders

DefaultProviders except(array $providers)

Disable the given providers.

Parameters

array $providers

Return Value

DefaultProviders

array toArray()

Convert the provider collection to an array.

Return Value

array