芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/livewire/livewire/src/Commands/ComponentParserFromExistingComponent.php
existingParser = $existingParser; parent::__construct($classNamespace, $viewPath, $rawCommand); } public function classContents($inline = false) { $originalFile = file_get_contents($this->existingParser->classPath()); $escapedClassNamespace = preg_replace('/\\\/', '\\\\\\', $this->existingParser->classNamespace()); return preg_replace_array( ["/namespace {$escapedClassNamespace}/", "/class {$this->existingParser->className()}/", "/{$this->existingParser->viewName()}/"], ["namespace {$this->classNamespace()}", "class {$this->className()}", $this->viewName()], $originalFile ); } }