Acacha\Llum\Filesystem\Filesystem::overwrite PHP Метод

overwrite() публичный метод

Overwrite file with provided content.
public overwrite ( $file, $content )
$file
$content
    public function overwrite($file, $content)
    {
        $this->put($file, $content);
    }

Usage Example

Пример #1
0
 /**
  * init command.
  */
 public function init(InputInterface $input, OutputInterface $output)
 {
     try {
         $this->executeWizard($input, $output);
         $this->filesytem->overwrite((new LlumRCFile())->path(), $this->compiler->compile($this->filesytem->get($this->getStubPath()), $this->data));
     } catch (\Exception $e) {
         print_r($e->xdebug_message);
     }
 }