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;
    }
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;
    }
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 ; }
Get configuration and create the step objects

@return array The step objects, indexed by ID
Get configuration and create the step objects