You are here

public static function UserInviteController::create in User External Invite 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/UserInviteController.php \Drupal\user_external_invite\Controller\UserInviteController::create()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

Return value

static

Overrides ControllerBase::create

File

src/Controller/UserInviteController.php, line 39

Class

UserInviteController

Namespace

Drupal\user_external_invite\Controller

Code

public static function create(ContainerInterface $container) {
  $invite_manager = $container
    ->get('user_external_invite.invite_manager');
  $logger_factory = $container
    ->get('logger.factory');
  return new static($invite_manager, $logger_factory);
}