Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator::saveRuntimeExpressions PHP Method

saveRuntimeExpressions() public method

Shutdown the Evaluator and save created expressions overwriting any existing expressions
public saveRuntimeExpressions ( ) : void
return void
    public function saveRuntimeExpressions()
    {
        if ($this->newExpressions === []) {
            return;
        }
        $codeToBeCached = 'return array (' . chr(10);
        foreach ($this->newExpressions as $name => $function) {
            $codeToBeCached .= "'" . $name . "' => " . $function . ',' . chr(10);
        }
        $codeToBeCached .= ');';
        $this->runtimeExpressionsCache->set('Flow_Aop_RuntimeExpressions', $codeToBeCached);
    }