芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/livewire/livewire/src/Commands/StubParser.php
baseClassNamespace = $classNamespace; $classPath = static::generatePathFromNamespace($classNamespace); $this->baseClassPath = rtrim($classPath, DIRECTORY_SEPARATOR).'/Stubs/'; $this->baseViewPath = rtrim($viewPath, DIRECTORY_SEPARATOR).'/stubs/'; $directories = preg_split('/[.\/]+/', $rawCommand); $this->component = str(array_pop($directories))->kebab(); $this->componentClass = str($this->component)->studly(); $this->directories = array_map([Str::class, 'studly'], $directories); } public function classFile() { return $this->componentClass.'.stub'; } public function viewFile() { return $this->component.'.stub'; } public function classContents($inline = false) { return file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'Component.stub'); } }