function getBody() { if (null === $this->body) { $body = parent::getBody(); $bundleProcessors = $this->environment->bundleProcessors->all($this->getContentType()); $context = new Context($this->environment); $this->body = $context->evaluate($this->path, array("processors" => $bundleProcessors, "data" => $body)); } return $this->body; }
function getBody() { if (null === $this->body) { $ctx = new Context($this->environment); $result = ''; $body = $ctx->evaluate($this->path, array("data" => parent::getBody(), "processors" => $this->getProcessors()), $this->getLogicalPath()); $this->dependencies = array_merge($this->dependencies, $ctx->dependencyPaths); $result .= join("\n", $ctx->dependencyAssets); $result .= $body; $this->body = $result; } return $this->body; }