You are here

public static function AuthenticationByUser::createInstance in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Controller/AuthenticationByUser.php \Drupal\cms_content_sync\Controller\AuthenticationByUser::createInstance()
  2. 2.0.x src/Controller/AuthenticationByUser.php \Drupal\cms_content_sync\Controller\AuthenticationByUser::createInstance()

Create a new instance of the controller with the services of the given container.

Return value

AuthenticationByUser

1 call to AuthenticationByUser::createInstance()
AuthenticationByUser::getInstance in src/Controller/AuthenticationByUser.php
Singleton.

File

src/Controller/AuthenticationByUser.php, line 69

Class

AuthenticationByUser
Class AuthenticationByUser.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function createInstance(ContainerInterface $container) {
  return new static($container
    ->get('keyvalue.database'), $container
    ->get('user.data'));
}