Exemple #1
0
 public function __construct($uri)
 {
     parent::__construct();
     $this->uri = Uri::create($uri);
     if (!$this->uri->isAbsolute()) {
         FrameworkRuntimeError::create('Redirect URI must be absolute, "%s" is given', null, $this->uri->toString())->_throw();
     }
 }
Exemple #2
0
 /**
  * @return void
  */
 public function outputHeaders()
 {
     if (isset($this->statusCode)) {
         http_response_code($this->statusCode);
     }
     // Output response header fields
     foreach (ResponseHeader\AbstractField::getAll() as $field) {
         $field->output();
     }
 }