芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/dompdf/RouteProviderMakeCommand.php
laravel['modules']->findOrFail($this->getModuleName()); return (new Stub('/route-provider.stub', [ 'NAMESPACE' => $this->getClassNamespace($module), 'CLASS' => $this->getFileName(), 'MODULE_NAMESPACE' => $this->laravel['modules']->config('namespace'), 'MODULE' => $this->getModuleName(), 'CONTROLLER_NAMESPACE' => $this->getControllerNameSpace(), 'WEB_ROUTES_PATH' => $this->getWebRoutesPath(), 'API_ROUTES_PATH' => $this->getApiRoutesPath(), 'LOWER_NAME' => $module->getLowerName(), ]))->render(); } /** * @return string */ private function getFileName() { return 'RouteServiceProvider'; } /** * Get the destination file path. * * @return string */ protected function getDestinationFilePath() { $path = $this->laravel['modules']->getModulePath($this->getModuleName()); $generatorPath = GenerateConfigReader::read('provider'); return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; } /** * @return mixed */ protected function getWebRoutesPath() { return '/' . $this->laravel['modules']->config('stubs.files.routes/web', 'Routes/web.php'); } /** * @return mixed */ protected function getApiRoutesPath() { return '/' . $this->laravel['modules']->config('stubs.files.routes/api', 'Routes/api.php'); } public function getDefaultNamespace() : string { $module = $this->laravel['modules']; return $module->config('paths.generator.provider.namespace') ?: $module->config('paths.generator.provider.path', 'Providers'); } /** * @return string */ private function getControllerNameSpace(): string { $module = $this->laravel['modules']; return str_replace('/', '\\', $module->config('paths.generator.controller.namespace') ?: $module->config('paths.generator.controller.path', 'Controller')); } }