You are here

public static function ContentHubSubscription::create in Acquia Content Hub 8

File

src/ContentHubSubscription.php, line 66

Class

ContentHubSubscription
Handles operations on the Acquia Content Hub Subscription.

Namespace

Drupal\acquia_contenthub

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('logger.factory'), $container
    ->get('config.factory'), $container
    ->get('acquia_contenthub.client_manager'), $container
    ->get('state'));
}