|
@@ -48,15 +48,15 @@ |
|
|
block discarded – undo |
|
48
|
48
|
} |
|
49
|
49
|
|
|
50
|
50
|
public function renderContent($initialControllerInstance,$viewName, $params=NULL) { |
|
51
|
|
- if ($initialControllerInstance->has('templating')) { |
|
52
|
|
- return $initialControllerInstance->get('templating')->render($viewName, $params); |
|
53
|
|
- } |
|
|
51
|
+ if ($initialControllerInstance->has('templating')) { |
|
|
52
|
+ return $initialControllerInstance->get('templating')->render($viewName, $params); |
|
|
53
|
+ } |
|
54
|
54
|
|
|
55
|
|
- if (!$initialControllerInstance->has('twig')) { |
|
56
|
|
- throw new \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.'); |
|
57
|
|
- } |
|
|
55
|
+ if (!$initialControllerInstance->has('twig')) { |
|
|
56
|
+ throw new \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.'); |
|
|
57
|
+ } |
|
58
|
58
|
|
|
59
|
|
- return $initialControllerInstance->get('twig')->render($viewName, $params); |
|
|
59
|
+ return $initialControllerInstance->get('twig')->render($viewName, $params); |
|
60
|
60
|
} |
|
61
|
61
|
|
|
62
|
62
|
public function fromDispatcher($dispatcher){ |
Please login to merge, or discard this patch.