/** * Finishes request execution. * It is registered in start() and called automatically on script shutdown. */ public function finish() { $buffer = $this->page->render(); $response = $this->context->getResponse(); $response->flush($buffer); $this->managedCache->finalize(); }
public function __construct(Application $application) { parent::__construct(); $this->setApplication($application); $this->initializeCulture(); }
/** * Sets page of current request. * * @param Page $page */ public function setPage(Page $page) { $page->setApplication($this); $this->page = $page; }
public function __construct() { parent::__construct(); //$this->initializeSite(); //$this->initializeCulture(); }