ExtensionRegistry
class ExtensionRegistry (View source)
Properties
protected ExtensionInterface[] | $extensions | ||
protected array | $extensionClasses |
Methods
No description
No description
No description
No description
Runs once, invoked from the ExtensionSubscriber, to bootstrap all extensions by injecting the container and running their initialize method
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)
array
getExtensions()
array
getExtensionNames()
ExtensionInterface|null
getExtension(string $name)
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.
The reason why we're not iterating over $this->extensions
is that when
this method is called, they are not instantiated yet.