You are here

public function CasAttributesListController::__construct in CAS Attributes 2.x

Same name and namespace in other branches
  1. 8 src/Controller/CasAttributesListController.php \Drupal\cas_attributes\Controller\CasAttributesListController::__construct()

Constructor.

Parameters

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Controller/CasAttributesListController.php, line 52

Class

CasAttributesListController
Class CasAttributesListController.

Namespace

Drupal\cas_attributes\Controller

Code

public function __construct(RequestStack $request_stack, MessengerInterface $messenger, ConfigFactoryInterface $config_factory) {
  $this->requestStack = $request_stack;
  $this->messenger = $messenger;
  $this->settings = $config_factory
    ->get('cas_attributes.settings');
}