ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
- Public Member Functions inherited from ILIAS\StaticURL\Handler\Handler
 __construct ()
 
 getNamespace ()
 
 canHandle (Request $request)
 
 handle (Request $request, Context $context, Factory $response_factory)
 

Private Attributes

readonly ilLanguage $language
 

Detailed Description

Definition at line 31 of file StaticUrlHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Authentication\StaticUrlHandler::__construct ( )

Reimplemented from ILIAS\StaticURL\Handler\BaseHandler.

Definition at line 35 of file StaticUrlHandler.php.

36 {
37 global $DIC;
38 $this->language = $DIC->language();
40 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getNamespace()

ILIAS\Authentication\StaticUrlHandler::getNamespace ( )

Implements ILIAS\StaticURL\Handler\Handler.

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 
)

Implements ILIAS\StaticURL\Handler\Handler.

Definition at line 47 of file StaticUrlHandler.php.

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 }

References ILIAS\StaticURL\Response\Factory\can(), ILIAS\StaticURL\Request\Request\getAdditionalParameters(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ 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: