@@ -40,6 +40,9 @@ |
||
40 | 40 | return $fpath; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $classFqn |
|
45 | + */ |
|
43 | 46 | private function resolvePath($classFqn): array |
44 | 47 | { |
45 | 48 | $resolved = null; |
@@ -25,14 +25,14 @@ |
||
25 | 25 | } |
26 | 26 | $objectArg = $args->getNode(0); |
27 | 27 | $compiler |
28 | - ->write('$this->loadTemplate(') |
|
29 | - ->write('$this->env->getExtension("Psi\Bundle\ObjectRender\Twig\ObjectRenderExtension")->locateFile(') |
|
30 | - ->subcompile($objectArg) |
|
31 | - ->raw('), ') |
|
32 | - ->repr($this->getAttribute('name')) |
|
33 | - ->raw(', ') |
|
34 | - ->repr($this->getLine()) |
|
35 | - ->raw(')'); |
|
28 | + ->write('$this->loadTemplate(') |
|
29 | + ->write('$this->env->getExtension("Psi\Bundle\ObjectRender\Twig\ObjectRenderExtension")->locateFile(') |
|
30 | + ->subcompile($objectArg) |
|
31 | + ->raw('), ') |
|
32 | + ->repr($this->getAttribute('name')) |
|
33 | + ->raw(', ') |
|
34 | + ->repr($this->getLine()) |
|
35 | + ->raw(')'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | protected function addTemplateArguments(\Twig_Compiler $compiler) |