public function LTIToolProviderController::__construct in LTI Tool Provider 2.x
Same name and namespace in other branches
- 8 src/Controller/LTIToolProviderController.php \Drupal\lti_tool_provider\Controller\LTIToolProviderController::__construct()
Constructs a HTTP basic authentication provider object.
Parameters
ConfigFactoryInterface $configFactory: The configuration factory.
LoggerChannelFactoryInterface $loggerFactory: A logger instance.
EventDispatcherInterface $eventDispatcher: The event dispatcher.
ResponsePolicyInterface $killSwitch: The page cache kill switch.
Request $request: The request.
SessionInterface $session: The request session.
mixed $context: The LTI context.
string | null $destination: Optional destination.
File
- src/
Controller/ LTIToolProviderController.php, line 104
Class
- LTIToolProviderController
- Returns responses for lti_tool_provider module routes.
Namespace
Drupal\lti_tool_provider\ControllerCode
public function __construct(ConfigFactoryInterface $configFactory, LoggerChannelFactoryInterface $loggerFactory, EventDispatcherInterface $eventDispatcher, ResponsePolicyInterface $killSwitch, Request $request, SessionInterface $session, $context, ?string $destination) {
$this->configFactory = $configFactory;
$this->loggerFactory = $loggerFactory
->get('lti_tool_provider');
$this->eventDispatcher = $eventDispatcher;
$this->killSwitch = $killSwitch;
$this->request = $request;
$this->session = $session;
$this->context = $context;
$this->destination = $destination;
}