class WizardRegistry (View source)

DNS Wizard Registry

Central registry for all available DNS wizards. Manages wizard lifecycle, availability, and provides access to wizard instances.

Methods

__construct(ConfigurationInterface $config)

Constructor

bool
isEnabled()

Check if wizards are enabled in configuration

array
getAvailableWizardTypes()

Get list of available wizard types

getWizard(string $type)

Get a wizard instance by type

bool
isWizardAvailable(string $type)

Check if a specific wizard type is available

array
getAllWizards()

Get all available wizard instances

array
getWizardMetadata()

Get wizard metadata for UI display

void
registerWizard(string $type, string $className)

No description

Details

__construct(ConfigurationInterface $config)

Constructor

Parameters

ConfigurationInterface $config

Application configuration

bool isEnabled()

Check if wizards are enabled in configuration

Return Value

bool

True if wizards are enabled

array getAvailableWizardTypes()

Get list of available wizard types

Returns only wizards that are configured to be available.

Return Value

array

Array of wizard type identifiers (e.g., ['DMARC', 'SPF', 'DKIM'])

AbstractDnsWizard|null getWizard(string $type)

Get a wizard instance by type

Parameters

string $type

Wizard type identifier (e.g., 'DMARC', 'SPF')

Return Value

AbstractDnsWizard|null

Wizard instance or null if not found

Exceptions

RuntimeException

bool isWizardAvailable(string $type)

Check if a specific wizard type is available

Parameters

string $type

Wizard type identifier

Return Value

bool

True if wizard is available

array getAllWizards()

Get all available wizard instances

Return Value

array

Array of wizard instances keyed by type

array getWizardMetadata()

Get wizard metadata for UI display

Returns basic information about all available wizards without instantiating them.

Return Value

array

Array of wizard metadata

void registerWizard(string $type, string $className)

No description

Parameters

string $type
string $className

Return Value

void