protected compileMacroStop ( string $value ) : string | ||
$value | string | |
return | string |
protected function compileMacroStop($value)
{
$pattern = $this->createPlainMatcher('endmacro');
$value = preg_replace($pattern, '$1<?php $__container->endMacro(); ?>$2', $value);
$pattern = $this->createPlainMatcher('endstory');
return preg_replace($pattern, '$1<?php $__container->endMacro(); ?>$2', $value);
}