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

setAppDirectoryNamespace() protected method

Set the namespace on the files in the app directory.
protected setAppDirectoryNamespace ( ) : void
return void
    protected function setAppDirectoryNamespace()
    {
        $files = Finder::create()->in($this->laravel['path'])->contains($this->currentRoot)->name('*.php');
        foreach ($files as $file) {
            $this->replaceNamespace($file->getRealPath());
        }
    }