addSource() public method

Add a source to our allow white-list
public addSource ( string $directive, string $path ) : self
$directive string
$path string
return self
コード例 #1
0
ファイル: Csp.php プロジェクト: basz/psr7-middlewares
 /**
  * Add a source to our allow whitelist.
  * 
  * @param string $directive
  * @param string $path
  * 
  * @return self
  */
 public function addSource($directive, $path)
 {
     $this->csp->addSource($directive, $path);
     return $this;
 }