getSecurityAdvisories example


  protected function getAdvisories(bool $allow_http_request = TRUE): ?array {
    $fetcher = $this->container->get('system.sa_fetcher');
    return $fetcher->getSecurityAdvisories($allow_http_request);
  }

  /** * Sets test feed responses. * * @param \GuzzleHttp\Psr7\Response[] $responses * The responses for the http_client service to return. */
  protected function setTestFeedResponses(array $responses): void {
    // Create a mock and queue responses.     $mock = new MockHandler($responses);
    
Home | Imprint | This part of the site doesn't use cookies.