Solved last template implementation bugs

This commit is contained in:
Kevin Frantz
2019-01-06 16:26:46 +01:00
parent 3ab9cb0e99
commit 70fb25e936
4 changed files with 30 additions and 25 deletions

View File

@@ -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();
}
}