ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
StaticUrlHandler.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Authentication
;
22
23
use
ILIAS\StaticURL\Handler\Handler
;
24
use
ILIAS\StaticURL\Handler\BaseHandler
;
25
use
ILIAS\StaticURL\Request\Request
;
26
use
ILIAS\StaticURL\Context
;
27
use
ILIAS\StaticURL\Response\Factory
;
28
use
ILIAS\StaticURL\Response\Response
;
29
use
ilLanguage
;
30
31
class
StaticUrlHandler
extends
BaseHandler
implements
Handler
32
{
33
private
readonly
ilLanguage
$language
;
34
35
public
function
__construct
()
36
{
37
global
$DIC
;
38
$this->
language
= $DIC->language();
39
parent::__construct
();
40
}
41
42
public
function
getNamespace
(): string
43
{
44
return
'auth'
;
45
}
46
47
public
function
handle
(
Request
$request,
Context
$context
,
Factory
$response_factory): 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
}
58
}
ILIAS\Authentication
ilLanguage
$context
$context
Definition:
webdav.php:31
ILIAS\Authentication\StaticUrlHandler\getNamespace
getNamespace()
Definition:
StaticUrlHandler.php:42
Handler
ILIAS\Authentication\StaticUrlHandler\__construct
__construct()
Definition:
StaticUrlHandler.php:35
Factory
ILIAS\StaticURL\Request\Request
ServerRequestInterface
ILIAS\Authentication\StaticUrlHandler
Definition:
StaticUrlHandler.php:31
BaseHandler
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\StaticURL\Response\Response
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:35
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
Context
ILIAS\Authentication\StaticUrlHandler\handle
handle(Request $request, Context $context, Factory $response_factory)
Definition:
StaticUrlHandler.php:47
ILIAS\Context
Definition:
Context.php:23
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
description: > Example for rendring a language glyph.
Definition:
language.php:41
ILIAS\Authentication\StaticUrlHandler\$language
readonly ilLanguage $language
Definition:
StaticUrlHandler.php:33
components
ILIAS
Authentication
classes
StaticUrlHandler.php
Generated on Sun Aug 31 2025 23:02:08 for ILIAS by
1.8.13 (using
Doxyfile
)