Illuminate\Foundation\Console\AppNameCommand::replaceNamespace PHP Method

replaceNamespace() protected method

Replace the App namespace at the given path.
protected replaceNamespace ( string $path ) : void
$path string
return void
    protected function replaceNamespace($path)
    {
        $search = ['namespace ' . $this->currentRoot . ';', $this->currentRoot . '\\'];
        $replace = ['namespace ' . $this->argument('name') . ';', $this->argument('name') . '\\'];
        $this->replaceIn($path, $search, $replace);
    }