Example #1
0
 private function processProperties($string, Context $context)
 {
     foreach ($context->getProperties() as $property) {
         $source = '##' . strtoupper($property->getName()) . '##';
         $string = str_replace($source, $property->getValue(), $string);
     }
     return $string;
 }