You are here

public static function Base::create in DRD Agent 4.0.x

Same name in this branch
  1. 4.0.x src/Agent/Action/Base.php \Drupal\drd_agent\Agent\Action\Base::create()
  2. 4.0.x src/Agent/Remote/Base.php \Drupal\drd_agent\Agent\Remote\Base::create()
  3. 4.0.x src/Agent/Auth/Base.php \Drupal\drd_agent\Agent\Auth\Base::create()
Same name and namespace in other branches
  1. 8.3 src/Agent/Auth/Base.php \Drupal\drd_agent\Agent\Auth\Base::create()

File

src/Agent/Auth/Base.php, line 54

Class

Base
Base class for Remote DRD Auth Methods.

Namespace

Drupal\drd_agent\Agent\Auth

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('current_user'), $container
    ->get('state'), $container
    ->get('user.auth'));
}