19declare(strict_types=1);
41 $settings = new \ilSetting();
42 if (!$settings->get(
'password_assistance',
'0')) {
43 return $response_factory->
cannot();
48 return match (
$path) {
49 'password' => $response_factory->
can(
50 $context->
ctrl()->getLinkTargetByClass(
53 \ilPasswordAssistanceGUI::class
57 'username' => $response_factory->
can(
58 $context->
ctrl()->getLinkTargetByClass(
61 \ilPasswordAssistanceGUI::class
63 'showUsernameAssistanceForm'
66 default => $response_factory->
cannot(),
handle(Request $request, Context $context, Factory $response_factory)
getAdditionalParameters()
can(string $uri_path, bool $shift=false)
The Handler successfully resolved the target.
cannot()
The Handler cannot process the given Request at all, e.g.