Extension Service
Namespace
JobMetric\Extension\Services\Extension
Facade
use JobMetric\Extension\Facades\Extension;
$namespace = Extension::namespaceFor('Module', 'Banner');
$extensions = Extension::all(['extension' => 'Module']);
$info = Extension::getInfo('Module', 'Banner');
Use getInfo() with the optional owner argument for a composed child. The service also offers listing, pagination, and lookup by installed ID.
Lifecycle Operations
| Method | Purpose |
|---|---|
| install($namespace) | Install a discovered extension and its declared composition |
| uninstall($namespace, $forceDeletePlugins = false) | Uninstall; explicitly opt in to deletion of associated instances where required |
| delete($type, $namespace) | Delete eligible files after uninstall; Composer-managed files are protected |
| upgrade($type, $name) | Upgrade through the type/name API |
| upgradeComposition($namespace) | Upgrade a composed root with unchanged membership |
The response-producing operations return PackageCore responses. See Composition for ownership, locking, and migration limits. Archive intake and activation are host concerns; the package's installZip(), upload(), and download() methods are placeholders.