src/Step/ImportConfig.php
public function process()
    {
        call_user_func_array($this->phpoole->getMessageCb(), ['CONFIG', 'Importing config']);

        try {
            $themes = array_reverse($this->config->getTheme());
            $count = 0;
            $max = count($themes);
            foreach ($themes as $theme) {
                $count++;
                $themeConfigFile = $this->config->getThemesPath().'/'.$theme.'/'.self::THEME_CONFIG_FILE;
                if (Util::getFS()->exists($themeConfigFile)) {
                    $themeConfig = Yaml::parse(
                        file_get_contents($themeConfigFile)
                    );
                    $this->config->import($themeConfig);
                    $message = sprintf('%s: config imported', $theme);
                } else {
                    $message = sprintf('%s: no config file', $theme);
                }
                call_user_func_array($this->phpoole->getMessageCb(), ['CONFIG_PROGRESS', $message, $count, $max]);
            }
        } catch (Exception $e) {
            echo $e->getMessage()."\n";
        }
    }
public function process()
    {
        call_user_func_array($this->phpoole->getMessageCb(), ['CONFIG', 'Importing config']);

        try {
            $themes = array_reverse($this->config->getTheme());
            $count = 0;
            $max = count($themes);
            foreach ($themes as $theme) {
                $count++;
                $themeConfigFile = $this->config->getThemesPath().'/'.$theme.'/'.self::THEME_CONFIG_FILE;
                if (Util::getFS()->exists($themeConfigFile)) {
                    $themeConfig = Yaml::parse(
                        file_get_contents($themeConfigFile)
                    );
                    $this->config->import($themeConfig);
                    $message = sprintf('%s: config imported', $theme);
                } else {
                    $message = sprintf('%s: no config file', $theme);
                }
                call_user_func_array($this->phpoole->getMessageCb(), ['CONFIG_PROGRESS', $message, $count, $max]);
            }
        } catch (Exception $e) {
            echo $e->getMessage()."\n";
        }
    }
{@inheritdoc}