Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Rename tsValue to fusionValue #3294

Merged
merged 1 commit into from Mar 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions Neos.Fusion/Classes/FusionObjects/AbstractFusionObject.php
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractFusionObject implements \ArrayAccess
/**
* @var array
*/
protected $tsValueCache = [];
protected $fusionValueCache = [];

/**
* Constructor
Expand Down Expand Up @@ -76,7 +76,7 @@ public function getRuntime()
/**
* Return the Fusion value relative to this Fusion object (with processors etc applied).
*
* Note that subsequent calls of tsValue() with the same Fusion path will return the same values since the
* Note that subsequent calls of fusionValue() with the same Fusion path will return the same values since the
* first evaluated value will be cached in memory.
*
* @param string $path
Expand All @@ -85,10 +85,10 @@ public function getRuntime()
protected function fusionValue($path)
{
$fullPath = $this->path . '/' . $path;
if (!isset($this->tsValueCache[$fullPath])) {
$this->tsValueCache[$fullPath] = $this->runtime->evaluate($fullPath, $this);
if (!isset($this->fusionValueCache[$fullPath])) {
$this->fusionValueCache[$fullPath] = $this->runtime->evaluate($fullPath, $this);
}
return $this->tsValueCache[$fullPath];
return $this->fusionValueCache[$fullPath];
}

/**
Expand Down