You are here

public function DisableLoginAccessCheck::__construct in Disable Login Page 1.0.x

Constructs an DisableLoginAccessCheck object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

Symfony\Component\HttpFoundation\RequestStack $request: The request stack.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The request stack.

File

src/Access/DisableLoginAccessCheck.php, line 53

Class

DisableLoginAccessCheck
Class DisableLoginAccessCheck.

Namespace

Drupal\disable_login\Access

Code

public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandlerInterface $module_handler) {
  $this->configFactory = $config_factory;
  $this->request = $request
    ->getCurrentRequest();
  $this->moduleHandler = $module_handler;
}