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