diff --git a/src/Contracts/Generator.php b/src/Contracts/Generator.php new file mode 100644 index 0000000..a5c607a --- /dev/null +++ b/src/Contracts/Generator.php @@ -0,0 +1,22 @@ +getStubFileContent($stubName); $baseTestClass = config('simple-crud.base_test_class'); diff --git a/src/Generators/FormViewGenerator.php b/src/Generators/FormViewGenerator.php index f4a3083..9e5f076 100644 --- a/src/Generators/FormViewGenerator.php +++ b/src/Generators/FormViewGenerator.php @@ -27,7 +27,7 @@ class FormViewGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { return $this->replaceStubString($this->getStubFileContent($stubName)); } diff --git a/src/Generators/IndexViewGenerator.php b/src/Generators/IndexViewGenerator.php index a33e3d5..0c34556 100644 --- a/src/Generators/IndexViewGenerator.php +++ b/src/Generators/IndexViewGenerator.php @@ -22,7 +22,7 @@ class IndexViewGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { return $this->replaceStubString($this->getStubFileContent($stubName)); } diff --git a/src/Generators/LangFileGenerator.php b/src/Generators/LangFileGenerator.php index 0443b88..1004f37 100644 --- a/src/Generators/LangFileGenerator.php +++ b/src/Generators/LangFileGenerator.php @@ -25,7 +25,7 @@ class LangFileGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $langStubPath = __DIR__.'/../stubs/'.$stubName.'.stub'; diff --git a/src/Generators/MigrationGenerator.php b/src/Generators/MigrationGenerator.php index 0a7d705..c15d63f 100644 --- a/src/Generators/MigrationGenerator.php +++ b/src/Generators/MigrationGenerator.php @@ -26,7 +26,7 @@ class MigrationGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { return $this->replaceStubString($this->getStubFileContent($stubName)); } diff --git a/src/Generators/ModelFactoryGenerator.php b/src/Generators/ModelFactoryGenerator.php index b6191e5..a023f13 100644 --- a/src/Generators/ModelFactoryGenerator.php +++ b/src/Generators/ModelFactoryGenerator.php @@ -25,7 +25,7 @@ class ModelFactoryGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $modelFactoryFileContent = $this->getStubFileContent($stubName); diff --git a/src/Generators/ModelGenerator.php b/src/Generators/ModelGenerator.php index 69b4a52..41abd96 100644 --- a/src/Generators/ModelGenerator.php +++ b/src/Generators/ModelGenerator.php @@ -26,7 +26,7 @@ class ModelGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $modelFileContent = $this->getStubFileContent($stubName); diff --git a/src/Generators/ModelPolicyGenerator.php b/src/Generators/ModelPolicyGenerator.php index 36f3802..e120f71 100644 --- a/src/Generators/ModelPolicyGenerator.php +++ b/src/Generators/ModelPolicyGenerator.php @@ -31,7 +31,7 @@ class ModelPolicyGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $stub = $this->getStubFileContent($stubName); diff --git a/src/Generators/ModelPolicyTestGenerator.php b/src/Generators/ModelPolicyTestGenerator.php index ca316c3..c45f2a5 100644 --- a/src/Generators/ModelPolicyTestGenerator.php +++ b/src/Generators/ModelPolicyTestGenerator.php @@ -25,7 +25,7 @@ class ModelPolicyTestGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $stub = $this->getStubFileContent($stubName); $baseTestClass = config('simple-crud.base_test_class'); diff --git a/src/Generators/ModelTestGenerator.php b/src/Generators/ModelTestGenerator.php index 09c05fe..3df67a8 100644 --- a/src/Generators/ModelTestGenerator.php +++ b/src/Generators/ModelTestGenerator.php @@ -25,7 +25,7 @@ class ModelTestGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $modelFileContent = $this->getStubFileContent($stubName); diff --git a/src/Generators/RouteGenerator.php b/src/Generators/RouteGenerator.php index 95a0476..0c22b9e 100644 --- a/src/Generators/RouteGenerator.php +++ b/src/Generators/RouteGenerator.php @@ -22,7 +22,7 @@ class RouteGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { $stub = $this->getStubFileContent($stubName); diff --git a/src/Generators/ShowViewGenerator.php b/src/Generators/ShowViewGenerator.php index 6a9809c..0f3d8bd 100644 --- a/src/Generators/ShowViewGenerator.php +++ b/src/Generators/ShowViewGenerator.php @@ -22,7 +22,7 @@ class ShowViewGenerator extends BaseGenerator /** * {@inheritDoc} */ - protected function getContent(string $stubName) + public function getContent(string $stubName) { return $this->replaceStubString($this->getStubFileContent($stubName)); }