Exemplo n.º 1
0
 public function __construct($defaultVisitor, AbstractRenderNode $unitNode, $newRenderContext)
 {
     $this->defaultVisitor = $defaultVisitor;
     $this->unitNode = $unitNode;
     $this->newRenderContext = $newRenderContext;
     $this->setWebsiteId(RenderContext::getWebsiteId());
     $this->setArray($unitNode->getUnit()->toArray());
     if ($unitNode instanceof LegacyNode) {
         $this->moduleAttributes = $unitNode->getModuleManifest();
     }
 }