public function __construct(Container $container) { parent::__construct($container); $this->mimeType = 'application/json'; }
public function __construct(Container $container) { parent::__construct($container); $this->mimeType = 'text/plain'; }
/** * Creates and returns the document object * * @return Document The document for this application's output */ public function getDocument() { static $instance = null; if (is_null($instance)) { $type = $this->getContainer()->input->getCmd('format', 'html'); $instance = Document::getInstance($type, $this->container); } return $instance; }