public function __construct(dmContext $context, array $options = array()) { $this->context = $context; $this->serviceContainer = $context->getServiceContainer(); $this->htmlWriter = new phpHtmlWriter(); $this->initialize($options); }