diff --git a/application/src/Controller/SourceController.php b/application/src/Controller/SourceController.php index a919c77..1c4ec5f 100644 --- a/application/src/Controller/SourceController.php +++ b/application/src/Controller/SourceController.php @@ -12,6 +12,7 @@ use App\Entity\Source\SourceInterface; use App\Creator\Factory\Template\Source\SourceTemplateFormFactory; use App\Creator\Factory\Form\Source\SourceFormFactory; use Symfony\Component\HttpFoundation\RedirectResponse; +use App\Entity\Source\AbstractSource; /** * @todo IMPLEMENT SECURITY! @@ -26,8 +27,8 @@ class SourceController extends FOSRestController public function show(Request $request, int $id): Response { $source = $this->loadSource($request, $id); - $assembler = $this->get(SourceDTOAssember::class); - $dto = $assembler->build($source, $this->getUser()); + #$assembler = $this->get(SourceDTOAssember::class); + #$dto = $assembler->build($source, $this->getUser()); $view = $this->view($source, 200) ->setTemplate((new SourceTemplateFactory($source, $request))->getTemplatePath()) ->setTemplateVar('source'); diff --git a/application/src/Creator/Factory/AbstractSourceFactory.php b/application/src/Creator/Factory/AbstractSourceFactory.php index 36d9167..d0ad5ce 100644 --- a/application/src/Creator/Factory/AbstractSourceFactory.php +++ b/application/src/Creator/Factory/AbstractSourceFactory.php @@ -7,7 +7,7 @@ use App\Entity\Source\SourceInterface; /** * @author kevinfrantz */ -class AbstractSourceFactory +abstract class AbstractSourceFactory { /** * @var SourceInterface diff --git a/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php b/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php index af2b39a..005224f 100644 --- a/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php +++ b/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php @@ -4,7 +4,7 @@ namespace App\Creator\Factory\Template\Source; use App\Entity\Source\SourceInterface; use Symfony\Component\HttpFoundation\Request; -use Creator\Factory\AbstractSourceFactory; +use App\Creator\Factory\AbstractSourceFactory; /** * @author kevinfrantz diff --git a/application/src/Entity/Source/UserSource.php b/application/src/Entity/Source/UserSource.php index b37d814..eb9c88e 100644 --- a/application/src/Entity/Source/UserSource.php +++ b/application/src/Entity/Source/UserSource.php @@ -26,7 +26,7 @@ class UserSource extends AbstractSource implements UserSourceInterface protected $user; /** - * @Assert\Type(type="App\Entity\NameSource") + * @Assert\Type(type="App\Entity\Source\NameSource") * @Assert\Valid() * @ORM\OneToOne(targetEntity="NameSource",cascade={"persist", "remove"}) * @ORM\JoinColumn(name="name_id", referencedColumnName="id") diff --git a/application/src/Form/NameSourceType.php b/application/src/Form/NameSourceType.php index 14c0a71..6305616 100644 --- a/application/src/Form/NameSourceType.php +++ b/application/src/Form/NameSourceType.php @@ -6,7 +6,7 @@ use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\TextType; -use App\Entity\NameSource; +use App\Entity\Source\NameSource; class NameSourceType extends AbstractType {