You are here

public static function AuthenticationByUser::getInstance 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::getInstance()
  2. 2.0.x src/Controller/AuthenticationByUser.php \Drupal\cms_content_sync\Controller\AuthenticationByUser::getInstance()

Singleton.

Return value

AuthenticationByUser

2 calls to AuthenticationByUser::getInstance()
DrupalApplication::getAuthentication in src/SyncCoreInterface/DrupalApplication.php
FlowForm::validateSyncCoreAccessToSite in src/Form/FlowForm.php
Ask the Sync Core to ping the site for all required methods and show an error in the form if the site doesn't respond in time or with an error code.

File

src/Controller/AuthenticationByUser.php, line 54

Class

AuthenticationByUser
Class AuthenticationByUser.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function getInstance() {
  static $instance = null;
  if ($instance) {
    return $instance;
  }
  return $instance = self::createInstance(\Drupal::getContainer());
}