$wizardProviders */ public function __construct( #[AutowireLocator( services: 'backend.wizard.provider', )] private ServiceLocator $wizardProviders, ) {} public function getProvider(string $identifier): WizardProviderInterface { if (!$this->wizardProviders->has($identifier)) { throw new \RuntimeException('WizardProvider "' . $identifier . '" not found', 1772114079); } return $this->wizardProviders->get($identifier); } }