19 declare(strict_types=1);
56 $this->dic[
'legalDocuments']
58 $this->sequence->push(
new ProfilePromptStartUpStep(
61 $this->dic->database(),
62 $this->dic->language(),
64 $this->dic->refinery()
69 $this->dic->http()->request()
79 $short = strpos(
$url, StandardURIBuilder::SHORT);
81 if (preg_match(
'@/([^/]+\\.php[?/].*)$@',
$url, $matches)) {
83 } elseif ($short !==
false) {
98 $this->dic->logger()->init()->debug(
'Started request interception checks ...');
100 if (defined(
'IL_CERT_SSO')) {
101 $this->dic->logger()->init()->debug(
'ApacheAuthentication request. No interception.');
104 $this->dic->logger()->init()->debug(
'Context does not support redirects. No interception.');
106 } elseif ($this->dic->ctrl()->isAsynch()) {
107 $this->dic->logger()->init()->debug(
'Async request. No interception.');
109 } elseif (in_array(basename(
$_SERVER[
'PHP_SELF']), array(
'logout.php'))) {
110 $this->dic->logger()->init()->debug(
'Logout request. No interception.');
112 } elseif (!$this->dic->user()->getId() || $this->dic->user()->isAnonymous()) {
113 $this->dic->logger()->init()->debug(
'Anonymous request. No interception.');
116 $this->dic->logger()->init()->debug(__CLASS__ .
' already passed in the current user session.');
120 $this->sequence->rewind();
121 while (!$this->sequence->isEmpty()) {
122 $step = $this->sequence->shift();
124 if ($step->isInFulfillment()) {
125 $this->dic->globalScreen()->tool()->context()->current()->addAdditionalData(
130 $this->dic->logger()->init()->debug(
'Step is in fulfillment:' . get_class($step));
134 if ($step->shouldInterceptRequest()) {
135 $this->dic->logger()->init()->debug(
'Step required adjustment:' . get_class($step));
136 if ($step->shouldStoreRequestTarget()) {
static get(string $a_var)
Interface Observer Contains several chained tasks and infos about them.
Customizing of pimple-DIC for ILIAS.
__construct(Container $dic)
const FORCED_STARTUP_STEP
static set(string $a_var, $a_val)
Set a value.
static supportsRedirects()
Are redirects supported?