extension_loader_interface extends loader_interface
Contract for extension loaders.
Table of Contents
Methods
- get_definitions() : array<int, array{class: string, slug: string, group: string, priority: int, hidden: bool}>
- Return all extension definitions discovered by the loader.
- load() : void
- Load and execute all extension bootstrap files.
Methods
get_definitions()
Return all extension definitions discovered by the loader.
public
get_definitions() : array<int, array{class: string, slug: string, group: string, priority: int, hidden: bool}>
The returned array MUST be normalized:
[ [ 'class' => string FQCN implementing extension_interface, 'slug' => string identifier (directory name), 'group' => string grouping category, 'priority' => int load order, 'hidden' => bool ], ... ]
Return values
array<int, array{class: string, slug: string, group: string, priority: int, hidden: bool}>load()
Load and execute all extension bootstrap files.
public
load(ContainerInterface $container) : void
This method is responsible for the "Physical Load":
- Include bootstrap.php to register container definitions.
Parameters
- $container : ContainerInterface