class ExtensionRegistry (View source)

Properties

protected ExtensionInterface[] $extensions
protected array $extensionClasses

Methods

void
addCompilerPass(array $extensionClasses)

No description

array
getExtensions()

No description

array
getExtensionNames()

No description

ExtensionInterface|null
getExtension(string $name)

No description

void
initializeAll(array $objects, bool $runCli = false)

Runs once, invoked from the ExtensionSubscriber, to bootstrap all extensions by injecting the container and running their initialize method

array
getAllRoutes()

This method calls the getRoutes() method for all registered extension, and compiles an array of routes. This is used in Bolt\Extension\RoutesLoader::load() to add all these routes to the (cached) routing.

Details

void addCompilerPass(array $extensionClasses)

Parameters

array $extensionClasses

Return Value

void

See also

\ExtensionCompilerPass::process()

array getExtensions()

Return Value

array

array getExtensionNames()

Return Value

array

ExtensionInterface|null getExtension(string $name)

Parameters

string $name

Return Value

ExtensionInterface|null

void initializeAll(array $objects, bool $runCli = false)

Runs once, invoked from the ExtensionSubscriber, to bootstrap all extensions by injecting the container and running their initialize method

Parameters

array $objects
bool $runCli

Return Value

void

See also

\ExtensionSubscriber::onKernelResponse()

array getAllRoutes()

This method calls the getRoutes() method for all registered extension, and compiles an array of routes. This is used in Bolt\Extension\RoutesLoader::load() to add all these routes to the (cached) routing.

The reason why we're not iterating over $this->extensions is that when this method is called, they are not instantiated yet.

Return Value

array