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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user