コード例 #1
0
 /**
  * @param string|null          $path
  * @param string|null          $host
  * @param string|string[]|null $methods
  * @param string|string[]|null $ips
  * @param array                $attributes
  * @param string|string[]|null $schemes
  * @param string|string[]|null $headers Header names to check for presence in the request.
  */
 public function __construct($path = null, $host = null, $methods = null, $ips = null, array $attributes = [], $schemes = null, $headers = null)
 {
     parent::__construct($path, $host, $methods, $ips, $attributes, $schemes);
     $this->matchHeaders($headers);
 }
コード例 #2
0
ファイル: RequestMatcher.php プロジェクト: gobjila/BackBee
 public function __construct($path = null, $host = null, $methods = null, $ip = null, array $attributes = array(), array $headers = array())
 {
     parent::__construct($path, $host, $methods, $ip, $attributes);
     $this->_headers = $headers;
 }