You are here

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

Implements the static interface create method.

File

src/ContentHubInternalRequest.php, line 91

Class

ContentHubInternalRequest
Provides a method to do internal sub-requests to obtain an entity CDF.

Namespace

Drupal\acquia_contenthub

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('http_kernel.basic'), $container
    ->get('acquia_contenthub.acquia_contenthub_subscription'), $container
    ->get('account_switcher'), $container
    ->get('config.factory'), $container
    ->get('logger.factory'), $container
    ->get('request_stack'));
}