From bfa837fd3a0c6bcb388160e4ac952f5178469506 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 18 Sep 2023 12:14:13 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Concerns/CodeGenerator.php | 51 ---------------------------------- 1 file changed, 51 deletions(-) diff --git a/src/Concerns/CodeGenerator.php b/src/Concerns/CodeGenerator.php index 83c8304..f27dc8d 100644 --- a/src/Concerns/CodeGenerator.php +++ b/src/Concerns/CodeGenerator.php @@ -91,55 +91,4 @@ public function afterCodeHasBeenGenerated(string $className, string $path): void { // } - - /** - * Get the destination class path. - * - * @param string $name - * @return string - */ - protected function getPath($name) - { - $name = Str::replaceFirst($this->rootNamespace(), '', $name); - - return $this->getSourcePath().'/'.str_replace('\\', '/', $name).'.php'; - } - - protected function getSourcePath() - { - return $this->generatorPreset()->sourcePath(); - } - - /** - * Get the root namespace for the class. - * - * @return string - */ - protected function rootNamespace() - { - return $this->generatorPreset()->rootNamespace(); - } - - /** - * Get the model for the default guard's user provider. - * - * @return string|null - */ - protected function userProviderModel() - { - return $this->generatorPreset()->userProviderModel(); - } - - /** - * Get the first view directory path from the application configuration. - * - * @param string $path - * @return string - */ - protected function viewPath($path = '') - { - $views = $this->generatorPreset()->viewPath(); - - return $views.($path ? DIRECTORY_SEPARATOR.$path : $path); - } }