src/Core/Console/PluginInstallCommand.php
protected function replaceFileContent($path, array $headers)
    {
        $content = $this->files->get($path);
        $this->files->put($path, str_replace([
            'DummyNamespace',
            'DummyAutoload',
            'dummy_path'
        ], [
            $this->getNamespace($headers['plugin_namespace']),
            $this->getAutoloadNamespace($headers['plugin_namespace']),
            $this->getPluginPath()
        ], $content), true);
    }
protected function replaceFileContent($path, array $headers)
    {
        $content = $this->files->get($path);
        $this->files->put($path, str_replace([
            'DummyNamespace',
            'DummyAutoload',
            'dummy_path'
        ], [
            $this->getNamespace($headers['plugin_namespace']),
            $this->getAutoloadNamespace($headers['plugin_namespace']),
            $this->getPluginPath()
        ], $content), true);
    }
protected function replaceFileContent ( $ path , array $ headers ) { $ content = $ this -> files -> get ( $ path ) ; $ this -> files -> put ( $ path , str_replace ( [ 'DummyNamespace' , 'DummyAutoload' , 'dummy_path' ] , [ $ this -> getNamespace ( $ headers [ 'plugin_namespace' ] ) , $ this -> getAutoloadNamespace ( $ headers [ 'plugin_namespace' ] ) , $ this -> getPluginPath ( ) ] , $ content ) , true ) ; }
Replace file content with given headers values.

@param string $path
@param array  $headers

@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
Replace file content with given headers values .