/**
  * 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();
 }
Esempio n. 2
0
 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;
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     //$this->initializeSite();
     //$this->initializeCulture();
 }