diff --git a/application/src/Creator/Factory/AbstractSourceFactory.php b/application/src/Creator/Factory/AbstractSourceFactory.php deleted file mode 100644 index d0ad5ce..0000000 --- a/application/src/Creator/Factory/AbstractSourceFactory.php +++ /dev/null @@ -1,28 +0,0 @@ -source = $source; - } - - protected function getSourceClassShortName(): string - { - $reflection = new \ReflectionClass($this->source); - - return $reflection->getShortName(); - } -} diff --git a/application/src/Creator/Factory/Form/Source/SourceFormFactory.php b/application/src/Creator/Factory/Form/Source/SourceFormFactory.php deleted file mode 100644 index d02e682..0000000 --- a/application/src/Creator/Factory/Form/Source/SourceFormFactory.php +++ /dev/null @@ -1,23 +0,0 @@ -getName(); - } - - protected function getName(): string - { - return $this->getSourceClassShortName().'Type'; - } -} diff --git a/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php b/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php deleted file mode 100644 index 005224f..0000000 --- a/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php +++ /dev/null @@ -1,43 +0,0 @@ -request = $request; - } - - public function getTemplatePath(): string - { - return self::SOURCE_TEMPLATE_ROOT.'/'.self::VIEW_FOLDER.'/'.$this->generateName().'.'.$this->request->getRequestFormat().'.twig'; - } - - protected function generateName(): string - { - $lowerName = strtolower($this->getSourceClassShortName()); - - return str_replace('source', '', $lowerName); - } -} diff --git a/application/src/Creator/Factory/Template/Source/SourceTemplateFormFactory.php b/application/src/Creator/Factory/Template/Source/SourceTemplateFormFactory.php deleted file mode 100644 index ddf9e61..0000000 --- a/application/src/Creator/Factory/Template/Source/SourceTemplateFormFactory.php +++ /dev/null @@ -1,16 +0,0 @@ -generateName().'.'.$this->request->getRequestFormat().'.twig'; - } -}