private function updateDistBundles()
    {
        $fs = $this->app['filesystem']->getFilesystem('root');
        $files = [
            '.bolt.yml',
            'composer.json',
            'composer.lock',
            'src/Site/CustomisationExtension.php',
        ];
        foreach ($files as $file) {
            $dist = $fs->getFile($file . '.dist');
            if (!$fs->has($file) && $dist->exists()) {
                $dist->rename($file);
            }
        }
    }
private function updateDistBundles()
    {
        $fs = $this->app['filesystem']->getFilesystem('root');
        $files = [
            '.bolt.yml',
            'composer.json',
            'composer.lock',
            'src/Site/CustomisationExtension.php',
        ];
        foreach ($files as $file) {
            $dist = $fs->getFile($file . '.dist');
            if (!$fs->has($file) && $dist->exists()) {
                $dist->rename($file);
            }
        }
    }
private function updateDistBundles ( ) { $ fs = $ this -> app [ 'filesystem' ] -> getFilesystem ( 'root' ) ; $ files = [ '.bolt.yml' , 'composer.json' , 'composer.lock' , 'src/Site/CustomisationExtension.php' , ] ; foreach ( $ files as $ file ) { $ dist = $ fs -> getFile ( $ file . '.dist' ) ; if ( ! $ fs -> has ( $ file ) && $ dist -> exists ( ) ) { $ dist -> rename ( $ file ) ; } } }
Archive distributions have the site bundle files installed as .dist
files to prevent the real files being overridden. If the .dist file
exists, but the original doesn't then we should rename them.
Archive distributions have the site bundle files installed as . dist files to prevent the real files being overridden . If the . dist file exists but the original doesn t then we should rename them .