public function __construct($container, $body = '', $_status = 200, $headers = array()) { $this->_container = $container; $this->setStatus($_status); $this->_headers = new Headers(array('Content-Type' => 'text/html')); $this->_server = new Collection($_SERVER); $this->_cookies = Cookies::extract($this->_server->get('http_cookie')); }
public function __construct($container) { $this->_container = $container; $this->_server = new Collection($_SERVER); $this->_post = new Collection($_POST); $this->_get = new Collection($_GET); $this->_headers = Headers::extract($this->_server); $this->_cookies = Cookies::extract($this->_server->get('http_cookie')); $this->getMethod(); $this->getHeaders(); }