Skip to main content

Extension Exist Rule

Namespace​

JobMetric\Extension\Rules\ExtensionExistRule

The rule validates a fully qualified extension namespace against the extensions available for the requested type.

use JobMetric\Extension\Rules\ExtensionExistRule;

$rules = [
'namespace' => ['required', 'string', new ExtensionExistRule('Module')],
];

Existence does not grant permission to install, uninstall, or delete an extension. Apply authorization and lifecycle checks in the host.