Bug #3994
Viewhelpers are instanciated multiple times in ViewHelperNode
Start date:
2009-07-27
Due date:
% Done:
100%
Estimated time:
Has patch:
Description
In the evaluate() method of \F3\Fluid\Core\Parser\SyntaxTree\ViewHelperNode there is
$viewHelper = $objectFactory->create($this->viewHelperClassName);
The viewhelper should be stored in a private/protected field to be able to do
if ($this->viewHelper === NULL) { $this->viewHelper = $objectFactory->create($this->viewHelperClassName); }
This will increase performance and make it possible to store private values in view helpers.
Related issues
Updated by Sebastian Kurfuerst about 13 years ago
- Status changed from New to Accepted
- Priority changed from Should have to Must have
Updated by Sebastian Kurfuerst about 13 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r2895.