Ejemplo n.º 1
0
 public function pocCallbackCache($buffer)
 {
     $this->poc->setOutput($buffer);
     $this->poc->getPocDispatcher()->dispatch(CallbackHandlerEventNames::BEFORE_OUTPUT_SENT_TO_CLIENT_FETCHED_FROM_CACHE, new BaseEvent($this->poc));
     $this->outputHandler->ObPrintCallback($this->poc->getOutput());
     return $this->poc->getOutput();
 }
Ejemplo n.º 2
0
 public function getOutputFromCache(BaseEvent $event)
 {
     $this->outputHandler->startBuffer(CallbackHandler::CALLBACK_CACHE);
     $this->callbackHandler->getHeaderManipulator()->fetchHeaders();
     $this->outputHandler->stopBuffer($this->poc->getOutput());
 }