get(null); unset($conf['b8']['app']); unset($conf['b8']['view']); $conf['phpci']['url'] = $conf['install_url']; if (isset($conf['github_app'])) { $conf['phpci']['github'] = $conf['github_app']; } unset($conf['install_url']); unset($conf['github_app']); $dumper = new Symfony\Component\Yaml\Dumper(); $yaml = $dumper->dump($conf); file_put_contents(APPLICATION_PATH . 'PHPCI/config.yml', $yaml); unlink(APPLICATION_PATH . 'config.php'); } if (file_exists(APPLICATION_PATH . 'PHPCI/config.yml')) { $config->loadYaml(APPLICATION_PATH . 'PHPCI/config.yml'); // Define our PHPCI_URL, if not already defined: if (!defined('PHPCI_URL')) { define('PHPCI_URL', $config->get('phpci.url', '') . '/'); } }