Exemple #1
0
 /**
  * Return array of HTTP header names and values.
  * This method returns the _original_ header name
  * as specified by the end user.
  *
  * @return array
  */
 public function all()
 {
     $all = parent::all();
     $out = [];
     foreach ($all as $key => $props) {
         $out[$props['originalKey']] = $props['value'];
     }
     return $out;
 }
Exemple #2
0
 /**
  * Retrieve attributes derived from the request.
  *
  * The request "attributes" may be used to allow injection of any
  * parameters derived from the request: e.g., the results of path
  * match operations; the results of decrypting cookies; the results of
  * deserializing non-form-encoded message bodies; etc. Attributes
  * will be application and request specific, and CAN be mutable.
  *
  * @return array Attributes derived from the request.
  */
 public function getAttributes()
 {
     return $this->attributes->all();
 }