Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions components/ILIAS/GlobalScreen/resources/callback_handler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
<?php

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/

namespace ILIAS\GlobalScreen\Client;

/** @noRector */
require_once(__DIR__ . '/../vendor/composer/vendor/autoload.php');
require_once(__DIR__ . '/../artifacts/bootstrap_default.php');

if (php_sapi_name() !== 'cli') {
entry_point('ILIAS Legacy Initialisation Adapter');
(new CallbackHandler())->run();
}
5 changes: 3 additions & 2 deletions components/ILIAS/GlobalScreen/resources/gs_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
namespace ILIAS\GlobalScreen\Client;

require_once(__DIR__ . '/../vendor/composer/vendor/autoload.php');
require_once(__DIR__ . '/../artifacts/bootstrap_default.php');

use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
use ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost;
Expand All @@ -29,8 +30,6 @@ class ContentRenderer

public function run()
{
\ilContext::init(\ilContext::CONTEXT_WAC);
\ilInitialisation::initILIAS();
global $DIC;

$GS = $DIC->globalScreen();
Expand Down Expand Up @@ -58,5 +57,7 @@ public function run()
}

if (php_sapi_name() !== 'cli') {
\ilContext::init(\ilContext::CONTEXT_WAC);
entry_point('ILIAS Legacy Initialisation Adapter');
(new ContentRenderer())->run();
}
10 changes: 6 additions & 4 deletions components/ILIAS/GlobalScreen/resources/notify.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -15,14 +14,17 @@
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/
/**
*********************************************************************
*
* Entry Point for Async calls from the Notification Center
*/

declare(strict_types=1);

namespace ILIAS\GlobalScreen\Client;

/** @noRector */
require_once(__DIR__ . '/../vendor/composer/vendor/autoload.php');
\ilInitialisation::initILIAS();
require_once __DIR__ . '/../artifacts/bootstrap_default.php';
entry_point('ILIAS Legacy Initialisation Adapter');
(new Notifications())->run();
4 changes: 2 additions & 2 deletions components/ILIAS/GlobalScreen/src/Client/CallbackHandler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -17,6 +16,8 @@
*
*********************************************************************/

declare(strict_types=1);

namespace ILIAS\GlobalScreen\Client;

use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
Expand All @@ -40,7 +41,6 @@ class CallbackHandler

public function __construct()
{
ilInitialisation::initILIAS();
global $DIC;
$this->ctrl = $DIC->ctrl();
$this->wrapper = $DIC->http()->wrapper();
Expand Down