createFetchTask example

    $this->keyValueStore->delete('update_project_projects');
    $this->keyValueStore->delete('update_project_data');

    $projects = $this->getProjects();

    // Now that we have the list of projects, we should also clear the available     // release data, since even if we fail to fetch new data, we need to clear     // out the stale data at this point.     $this->availableReleasesTempStore->deleteAll();

    foreach ($projects as $project) {
      $this->updateProcessor->createFetchTask($project);
    }
  }

  /** * {@inheritdoc} */
  public function getProjects() {
    if (empty($this->projects)) {
      // Retrieve the projects from storage, if present.       $this->projects = $this->projectStorage('update_project_projects');
      if (empty($this->projects)) {
        
Home | Imprint | This part of the site doesn't use cookies.