You are here

public static function MoxtraService::create in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::create()

File

src/MoxtraService.php, line 71

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('string_translation'), $container
    ->get('config.factory'), $container
    ->get('logger.factory'), $container
    ->get('messenger'), $container
    ->get('http_client'), $container
    ->get('opigno_moxtra.connector'));
}