You are here

public static function PuSHEnvironment::instance in Feeds 8.2

Singleton.

1 call to PuSHEnvironment::instance()
FeedsHTTPFetcher::subscriber in lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsHTTPFetcher.php
Convenience method for instantiating a subscriber object.

File

lib/Drupal/feeds/PuSHEnvironment.php, line 12

Class

PuSHEnvironment
Provide environmental functions to the PuSHSubscriber library.

Namespace

Drupal\feeds

Code

public static function instance() {
  static $env;
  if (empty($env)) {
    $env = new PuSHEnvironment();
  }
  return $env;
}