You are here

public static function MoxtraService::create in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x 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'));
}