Implemented TemplateMeta and tests

This commit is contained in:
Kevin Frantz
2018-11-23 15:23:43 +01:00
parent 8a311caddc
commit b9a312cfd9
6 changed files with 124 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ class SourceMeta implements SourceMetaInterface
private function setBasicPathArray(): void
{
$namespace = $this->sourceReflection->getNamespaceName();
$namespaceWithoutRoot = str_replace('App\\', '', $namespace);
$namespaceWithoutRoot = str_replace('App\\Entity\\', '', $namespace);
$this->basicPathArray = [];
foreach (explode('\\', $namespaceWithoutRoot) as $element) {
$this->basicPathArray[] = strtolower($element);