public function generateConfig()
    {
        if ($this->isSymfony4()) {
            return;
        }

        $configFile = $this->rootDir.'/app/config/config.yml';
        $config = file_get_contents($configFile);

        $data = Yaml::parse($config);
        if (!array_key_exists('white_october_pagerfanta', $data)) {
            $ymlData = "\n\nwhite_october_pagerfanta:";
            $ymlData .= "\n    default_view: twitter_bootstrap\n";
            file_put_contents($configFile, $ymlData, FILE_APPEND);
        }
    }