You are here

protected function ModifiedFiles::getHashRequests in Automatic Updates 8

Get an iterator of promises that return a resource stream.

@codingStandardsIgnoreStart

@@codingStandardsIgnoreEnd

Parameters

array $extensions: The list of extensions, keyed by extension name and value the info array.

Return value

\Generator

1 call to ModifiedFiles::getHashRequests()
ModifiedFiles::getModifiedFiles in src/Services/ModifiedFiles.php
Get list of modified files.

File

src/Services/ModifiedFiles.php, line 151

Class

ModifiedFiles
Modified files service.

Namespace

Drupal\automatic_updates\Services

Code

protected function getHashRequests(array $extensions) {
  foreach ($extensions as $info) {

    // We can't check for modifications if we don't know the version.
    if (!$info['version']) {
      continue;
    }
    $url = $this
      ->buildUrl($info);
    (yield $this
      ->getPromise($url, $info));
  }
}