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

@@ -57,7 +57,7 @@ class EntityMetaInformation implements EntityMetaInformationInterface
{
$this->entity = $entity;
$this->entityReflection = new \ReflectionClass($entity);
$this->setBasicPathArray();
$this->setNamespacePathMap();
$this->setPureName();
$this->setInterfaceReflection();
$this->setTemplatePathFormAndView();
@@ -66,10 +66,10 @@ class EntityMetaInformation implements EntityMetaInformationInterface
private function setTemplatePathFormAndView(): void
{
$this->templatePathFormAndView = new TemplatePathFormAndView($this->namespacePathMap->getPath(), $this->pureName);
$this->templatePathFormAndView = new TemplatePathFormAndView($this->pureName, $this->namespacePathMap->getPath());
}
private function setBasicPathArray(): void
private function setNamespacePathMap(): void
{
$namespace = $this->entityReflection->getNamespaceName();
$namespaceWithoutRoot = str_replace('App\\Entity\\', '', $namespace);