OnBoarding/OnBoarding.php
private function loadConfiguration(Router $router)
    {
        $configuration = new Configuration($this->translator);
        $configuration = $configuration->getConfiguration($router);

        foreach ($configuration['steps']['groups'] as &$currentGroup) {
            if (isset($currentGroup['title'])) {
                $currentGroup['title'] = $this->getTextFromSettings($currentGroup['title']);
            }
            if (isset($currentGroup['subtitle'])) {
                foreach ($currentGroup['subtitle'] as &$subtitle) {
                    $subtitle = $this->getTextFromSettings($subtitle);
                }
            }
            foreach ($currentGroup['steps'] as &$currentStep) {
                $currentStep['text'] = $this->getTextFromSettings($currentStep['text']);
            }
        }

        $this->configuration = $configuration;
    }
private function loadConfiguration(Router $router)
    {
        $configuration = new Configuration($this->translator);
        $configuration = $configuration->getConfiguration($router);

        foreach ($configuration['steps']['groups'] as &$currentGroup) {
            if (isset($currentGroup['title'])) {
                $currentGroup['title'] = $this->getTextFromSettings($currentGroup['title']);
            }
            if (isset($currentGroup['subtitle'])) {
                foreach ($currentGroup['subtitle'] as &$subtitle) {
                    $subtitle = $this->getTextFromSettings($subtitle);
                }
            }
            foreach ($currentGroup['steps'] as &$currentStep) {
                $currentStep['text'] = $this->getTextFromSettings($currentStep['text']);
            }
        }

        $this->configuration = $configuration;
    }
private function loadConfiguration ( Router $ router ) { $ configuration = new Configuration ( $ this -> translator ) ; $ configuration = $ configuration -> getConfiguration ( $ router ) ; foreach ( $ configuration [ 'steps' ] [ 'groups' ] as & $ currentGroup ) { if ( isset ( $ currentGroup [ 'title' ] ) ) { $ currentGroup [ 'title' ] = $ this -> getTextFromSettings ( $ currentGroup [ 'title' ] ) ; } if ( isset ( $ currentGroup [ 'subtitle' ] ) ) { foreach ( $ currentGroup [ 'subtitle' ] as & $ subtitle ) { $ subtitle = $ this -> getTextFromSettings ( $ subtitle ) ; } } foreach ( $ currentGroup [ 'steps' ] as & $ currentStep ) { $ currentStep [ 'text' ] = $ this -> getTextFromSettings ( $ currentStep [ 'text' ] ) ; } } $ this -> configuration = $ configuration ; }
Load all the steps with the localized texts.

@param string $configPath Path where the configuration can be loaded
Load all the steps with the localized texts .