public function createConfigFile($toFile)
    {
        if (file_exists($toFile)) {
            $this->getOutput()->debug('Config file already exists in plugin, skipping creation of config file.');

            return;
        }
        if (!$this->configDumper->hasConfig()) {
            $this->getOutput()->debug('No config to write out, skipping creation of config file.');

            return;
        }
        $this->configDumper->dump($toFile);
        $this->getOutput()->debug('Created config file at '.$toFile);
    }
public function createConfigFile($toFile)
    {
        if (file_exists($toFile)) {
            $this->getOutput()->debug('Config file already exists in plugin, skipping creation of config file.');

            return;
        }
        if (!$this->configDumper->hasConfig()) {
            $this->getOutput()->debug('No config to write out, skipping creation of config file.');

            return;
        }
        $this->configDumper->dump($toFile);
        $this->getOutput()->debug('Created config file at '.$toFile);
    }
public function createConfigFile ( $ toFile ) { if ( file_exists ( $ toFile ) ) { $ this -> getOutput ( ) -> debug ( 'Config file already exists in plugin, skipping creation of config file.' ) ; return ; } if ( ! $ this -> configDumper -> hasConfig ( ) ) { $ this -> getOutput ( ) -> debug ( 'No config to write out, skipping creation of config file.' ) ; return ; } $ this -> configDumper -> dump ( $ toFile ) ; $ this -> getOutput ( ) -> debug ( 'Created config file at ' . $ toFile ) ; }
Create plugin config file.

@param string $toFile
Create plugin config file .