getAttributes(CustomExt::class) as $attribute) { self::$custom_ext_class[$attribute->getArguments()[0]] = $class; } } } /** * Get the class name for a custom extension * * @param string $ext_name The extension name * @return string The class name for the extension */ public static function getExtClass(string $ext_name): string { return self::$custom_ext_class[$ext_name] ?? Extension::class; } }