Example #1
0
 /**
  * @return $this
  */
 private function applyHelpers()
 {
     $this->response->getLayout()->getEngine()->addHelper('statistics', function () {
         return 'Time: ' . Application::stats()->getTime() . ' Memory: ' . Application::stats()->getMemory() . ' Peak memory: ' . Application::stats()->getMemoryPeak();
     });
     $this->response->getLayout()->statistics = static::stats();
     return $this;
 }