ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Authentication\StaticUrlHandler Class Reference
+ Inheritance diagram for ILIAS\Authentication\StaticUrlHandler:
+ Collaboration diagram for ILIAS\Authentication\StaticUrlHandler:

Public Member Functions

 __construct ()
 
 getNamespace ()
 
 handle (Request $request, Context $context, Factory $response_factory)
 
- Public Member Functions inherited from ILIAS\StaticURL\Handler\BaseHandler
 __construct ()
 
 canHandle (Request $request)
 

Private Attributes

readonly ilLanguage $language
 

Detailed Description

Definition at line 31 of file StaticUrlHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Authentication\StaticUrlHandler::__construct ( )

Definition at line 35 of file StaticUrlHandler.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

36  {
37  global $DIC;
38  $this->language = $DIC->language();
40  }
global $DIC
Definition: shib_login.php:26
__construct(Container $dic, ilPlugin $plugin)
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ Here is the call graph for this function:

Member Function Documentation

◆ getNamespace()

ILIAS\Authentication\StaticUrlHandler::getNamespace ( )

Definition at line 42 of file StaticUrlHandler.php.

42  : string
43  {
44  return 'auth';
45  }

◆ handle()

ILIAS\Authentication\StaticUrlHandler::handle ( Request  $request,
Context  $context,
Factory  $response_factory 
)

Definition at line 47 of file StaticUrlHandler.php.

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

47  : Response
48  {
49  $additional_params = implode('/', $request->getAdditionalParameters() ?? []);
50 
51  return match ($additional_params) {
52  'login' => $response_factory->can('login.php?' . http_build_query([
53  'cmd' => 'force_login',
54  'lang' => $this->language->getLangKey(),
55  ])),
56  };
57  }
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ Here is the call graph for this function:

Field Documentation

◆ $language

readonly ilLanguage ILIAS\Authentication\StaticUrlHandler::$language
private

Definition at line 33 of file StaticUrlHandler.php.


The documentation for this class was generated from the following file: