PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` parser = new ComponentParser( config('livewire.class_namespace'), config('livewire.view_path'), $this->argument('name') ); $this->newParser = new ComponentParserFromExistingComponent( config('livewire.class_namespace'), config('livewire.view_path'), $this->argument('new-name'), $this->parser ); $inline = $this->option('inline'); $class = $this->renameClass(); if (! $inline) $view = $this->renameView(); $test = $this->option('test'); if ($test) { $test = $this->renameTest(); } $this->refreshComponentAutodiscovery(); $this->line(" COMPONENT MOVED 🤙\n"); $class && $this->line("CLASS: {$this->parser->relativeClassPath()} => {$this->newParser->relativeClassPath()}"); if (! $inline) $view && $this->line("VIEW: {$this->parser->relativeViewPath()} => {$this->newParser->relativeViewPath()}"); if ($test) $test && $this->line("Test: {$this->parser->relativeTestPath()} => {$this->newParser->relativeTestPath()}"); } protected function renameClass() { if (File::exists($this->newParser->classPath())) { $this->line(" WHOOPS-IE-TOOTLES 😳 \n"); $this->line("Class already exists: {$this->newParser->relativeClassPath()}"); return false; } $this->ensureDirectoryExists($this->newParser->classPath()); File::put($this->newParser->classPath(), $this->newParser->classContents()); return File::delete($this->parser->classPath()); } protected function renameView() { $newViewPath = $this->newParser->viewPath(); if (File::exists($newViewPath)) { $this->line("View already exists: {$this->newParser->relativeViewPath()}"); return false; } $this->ensureDirectoryExists($newViewPath); File::move($this->parser->viewPath(), $newViewPath); return $newViewPath; } protected function renameTest() { $newTestPath = $this->newParser->testPath(); if (File::exists($newTestPath)) { $this->line("Test already exists: {$this->newParser->relativeViewPath()}"); return false; } $this->ensureDirectoryExists($newTestPath); File::move($this->parser->testPath(), $newTestPath); return $newTestPath; } }