for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TYPO3Fluid\Fluid\Core\Rendering;
/*
* This file belongs to the package "TYPO3 Fluid".
* See LICENSE.txt that was shipped with this package.
*/
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
/**
* Class RenderableClosure
class RenderableClosure extends AbstractRenderable
{
* @var \Closure
protected $closure;
* @param \Closure $closure
* @return RenderableClosure
public function setClosure(\Closure $closure)
$this->closure = $closure;
return $this;
}
* @param RenderingContextInterface $renderingContext
* @return mixed
public function render(RenderingContextInterface $renderingContext)
return call_user_func_array($this->closure, [$renderingContext, $this->node]);