ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\StaticUrlHandler
Definition:
StaticUrlHandler.php:32
ILIAS\Authentication\StaticUrlHandler\$language
readonly ilLanguage $language
Definition:
StaticUrlHandler.php:33
ILIAS\Authentication\StaticUrlHandler\__construct
__construct()
Definition:
StaticUrlHandler.php:35
ILIAS\Authentication\StaticUrlHandler\getNamespace
getNamespace()
Definition:
StaticUrlHandler.php:42
ILIAS\Authentication\StaticUrlHandler\handle
handle(Request $request, Context $context, Factory $response_factory)
Definition:
StaticUrlHandler.php:47
ILIAS\StaticURL\Context
Definition:
Context.php:29
ILIAS\StaticURL\Handler\BaseHandler
Definition:
BaseHandler.php:29
ILIAS\StaticURL\Request\Request
Definition:
Request.php:29
ILIAS\StaticURL\Request\Request\getAdditionalParameters
getAdditionalParameters()
Definition:
Request.php:47
ILIAS\StaticURL\Response\Factory
Definition:
Factory.php:27
ILIAS\StaticURL\Response\Factory\can
can(string $uri_path)
Definition:
Factory.php:50
ilLanguage
language handling
Definition:
class.ilLanguage.php:43
ILIAS\StaticURL\Handler\Handler
Definition:
Handler.php:32
ILIAS\StaticURL\Response\Response
Definition:
Response.php:25
ILIAS\Authentication
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
Definition:
language.php:41
$DIC
global $DIC
Definition:
shib_login.php:26
$context
$context
Definition:
webdav.php:31
components
ILIAS
Authentication
classes
StaticUrlHandler.php
Generated on Sat Oct 18 2025 23:02:29 for ILIAS by
1.9.4 (using
Doxyfile
)