private function writeYamlConfig()
    {
        $customized = [];

        foreach ($this->resolver->names() as $name) {
            $raw = $this->resolver->raw($name);

            if ($raw !== $this->defaults->raw($name)) {
                $customized[$name] = $raw;
            }
        }

        if (!$customized) {
            return;
        }

        $this->io->writeln('Writing customized paths to <comment>.bolt.yml</comment>');

        $config = [
            'paths' => $customized,
        ];
        $this->filesystem->dumpFile('.bolt.yml', Yaml::dump($config));
    }
private function writeYamlConfig()
    {
        $customized = [];

        foreach ($this->resolver->names() as $name) {
            $raw = $this->resolver->raw($name);

            if ($raw !== $this->defaults->raw($name)) {
                $customized[$name] = $raw;
            }
        }

        if (!$customized) {
            return;
        }

        $this->io->writeln('Writing customized paths to <comment>.bolt.yml</comment>');

        $config = [
            'paths' => $customized,
        ];
        $this->filesystem->dumpFile('.bolt.yml', Yaml::dump($config));
    }
private function writeYamlConfig ( ) { $ customized = [ ] ; foreach ( $ this -> resolver -> names ( ) as $ name ) { $ raw = $ this -> resolver -> raw ( $ name ) ; if ( $ raw !== $ this -> defaults -> raw ( $ name ) ) { $ customized [ $ name ] = $ raw ; } } if ( ! $ customized ) { return ; } $ this -> io -> writeln ( 'Writing customized paths to <comment>.bolt.yml</comment>' ) ; $ config = [ 'paths' => $ customized , ] ; $ this -> filesystem -> dumpFile ( '.bolt.yml' , Yaml :: dump ( $ config ) ) ; }
Writes the .bolt.yml file if paths are not the default.
Writes the . bolt . yml file if paths are not the default .