/** * */ public function __construct() { $this->sapi = new HTTP\Sapi(); $this->httpResponse = new HTTP\Response(); $this->httpRequest = $this->sapi->getRequest(); $this->logger = Logger::get('controller'); // FIXME: JMAP Authorization headers don't get through to the Request object if (function_exists('apache_request_headers')) { $hdrs = apache_request_headers(); if (isset($hdrs['Authorization'])) { $this->httpRequest->setHeader('Authorization', $hdrs['Authorization']); } } // plugins can add more callbacks directly to $this->routes }