You are here

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

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

Overrides ControllerBase::create

File

src/Controller/ContentHubEntityExportController.php, line 133

Class

ContentHubEntityExportController
Controller for Content Hub Export Entities using bulk upload.

Namespace

Drupal\acquia_contenthub\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('acquia_contenthub.client_manager'), $container
    ->get('acquia_contenthub.entity_manager'), $container
    ->get('acquia_contenthub.acquia_contenthub_entities_tracking'), $container
    ->get('acquia_contenthub.normalizer.entity.acquia_contenthub_cdf'), $container
    ->get('acquia_contenthub.acquia_contenthub_export_queue'), $container
    ->get('entity.repository'), $container
    ->get('acquia_contenthub.internal_request'), $container
    ->get('config.factory'), $container
    ->get('logger.factory'));
}