public function create(string $identifier)
    {
        /** @var AbstractUpdate|UpgradeWizardInterface $upgradeWizard */
        $upgradeWizard = $this->objectManager->get($this->getClassNameFromIdentifier($identifier));
        if ($upgradeWizard instanceof AbstractUpdate) {
            $upgradeWizard->setIdentifier($identifier);
        }
        if ($upgradeWizard instanceof ChattyInterface) {
            $output = new BufferedOutput();
            $upgradeWizard->setOutput($output);
        }

        return $upgradeWizard;
    }
public function create(string $identifier)
    {
        /** @var AbstractUpdate|UpgradeWizardInterface $upgradeWizard */
        $upgradeWizard = $this->objectManager->get($this->getClassNameFromIdentifier($identifier));
        if ($upgradeWizard instanceof AbstractUpdate) {
            $upgradeWizard->setIdentifier($identifier);
        }
        if ($upgradeWizard instanceof ChattyInterface) {
            $output = new BufferedOutput();
            $upgradeWizard->setOutput($output);
        }

        return $upgradeWizard;
    }
public function create ( string $ identifier ) { /** @var AbstractUpdate|UpgradeWizardInterface $upgradeWizard */ $ upgradeWizard = $ this -> objectManager -> get ( $ this -> getClassNameFromIdentifier ( $ identifier ) ) ; if ( $ upgradeWizard instanceof AbstractUpdate ) { $ upgradeWizard -> setIdentifier ( $ identifier ) ; } if ( $ upgradeWizard instanceof ChattyInterface ) { $ output = new BufferedOutput ( ) ; $ upgradeWizard -> setOutput ( $ output ) ; } return $ upgradeWizard ; }
Creates instance of an upgrade wizard

@param string $identifier The identifier or class name of an upgrade wizard
@throws RuntimeException
@return AbstractUpdate|UpgradeWizardInterface Newly instantiated upgrade wizard
Creates instance of an upgrade wizard