Exemplo n.º 1
0
 private function processRecursion(ParsedShortcodeInterface $shortcode, ProcessorContext $context)
 {
     if ($this->autoProcessContent && null !== $shortcode->getContent()) {
         $context->recursionLevel++;
         // this is safe from using max iterations value because it's manipulated in process() method
         $content = $this->processIteration($shortcode->getContent(), clone $context, $shortcode);
         $context->recursionLevel--;
         return $shortcode->withContent($content);
     }
     return $shortcode;
 }