MarvinLabs\SetupWizard\Wizard\DefaultSetupWizard::createStepsFromConfig PHP Метод

createStepsFromConfig() защищенный Метод

Get configuration and create the step objects
protected createStepsFromConfig ( ) : array
Результат array The step objects, indexed by ID
    protected function createStepsFromConfig()
    {
        $config = $this->app['config'];
        $stepClasses = $config->get('setup_wizard.steps');
        if (empty($stepClasses)) {
            throw new \RuntimeException('The setup wizard requires at least 1 step in configuration');
        }
        $steps = [];
        $i = 0;
        foreach ($stepClasses as $id => $stepClass) {
            $s = new $stepClass($id);
            $steps[$id] = $s;
            ++$i;
        }
        return $steps;
    }