You are here

public static function Acquiadam::create in Media: Acquia DAM 8

Same name in this branch
  1. 8 src/Acquiadam.php \Drupal\media_acquiadam\Acquiadam::create()
  2. 8 src/Plugin/EntityBrowser/Widget/Acquiadam.php \Drupal\media_acquiadam\Plugin\EntityBrowser\Widget\Acquiadam::create()

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 ContainerInjectionInterface::create

1 call to Acquiadam::create()
AcquiadamServiceTest::setUp in tests/src/Unit/AcquiadamServiceTest.php

File

src/Acquiadam.php, line 56

Class

Acquiadam
Class Acquiadam.

Namespace

Drupal\media_acquiadam

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('media_acquiadam.client_factory'), 'background', $container
    ->get('logger.factory'));
}