mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Solved last template implementation bugs
This commit is contained in:
@@ -17,11 +17,6 @@ final class FormMetaInformation implements FormMetaInformationInterface
|
||||
*/
|
||||
private $entityMetaInformation;
|
||||
|
||||
/**
|
||||
* @var TemplatePathInformationInterface
|
||||
*/
|
||||
private $templatePathInformation;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@@ -33,7 +28,6 @@ final class FormMetaInformation implements FormMetaInformationInterface
|
||||
public function __construct(EntityMetaInformationInterface $entityMetaInformation)
|
||||
{
|
||||
$this->entityMetaInformation = $entityMetaInformation;
|
||||
$this->setTemplateMetaInformation();
|
||||
$this->setFormClass();
|
||||
}
|
||||
|
||||
@@ -46,11 +40,6 @@ final class FormMetaInformation implements FormMetaInformationInterface
|
||||
$this->formClass .= '\\'.ucfirst($this->entityMetaInformation->getPureName()).'Type';
|
||||
}
|
||||
|
||||
private function setTemplateMetaInformation(): void
|
||||
{
|
||||
$this->templatePathInformation = $this->entityMetaInformation->getTemplatePathFormAndView()->getForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
@@ -68,6 +57,6 @@ final class FormMetaInformation implements FormMetaInformationInterface
|
||||
*/
|
||||
public function getTemplatePathInformation(): TemplatePathInformationInterface
|
||||
{
|
||||
return $this->templatePathInformation;
|
||||
return $this->entityMetaInformation->getTemplatePathFormAndView()->getForm();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user