src/Command/LumenAppNameCommand.php
protected function replaceNamespace($path)
    {
        $search = [
            'namespace ' . $this->currentRoot . ';',
            $this->currentRoot . '\\'
        ];
        
        $replace = [
            'namespace ' . $this->argument('name') . ';',
            $this->argument('name') . '\\'
        ];
        
        $this->replaceIn($path, $search, $replace);
    }
protected function replaceNamespace($path)
    {
        $search = [
            'namespace ' . $this->currentRoot . ';',
            $this->currentRoot . '\\'
        ];
        
        $replace = [
            'namespace ' . $this->argument('name') . ';',
            $this->argument('name') . '\\'
        ];
        
        $this->replaceIn($path, $search, $replace);
    }
Replace the App namespace at the given path.

@param string $path
@return void