Skip to content

Commit

Permalink
Setup: get agents via component mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
klees committed Apr 22, 2024
1 parent 37fb6f5 commit d5ff50b
Show file tree
Hide file tree
Showing 86 changed files with 374 additions and 116 deletions.
9 changes: 8 additions & 1 deletion components/ILIAS/AccessControl/AccessControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilAccessControlSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilAccessRBACSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Administration/Administration.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\Administration\Setup\ilAdministrationSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilADNAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/AdvancedMetaData/AdvancedMetaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\AdvancedMetaData\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Authentication/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilAuthenticationSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/BackgroundTasks/BackgroundTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilBackgroundTasksSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Bibliographic/Bibliographic.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilBibliographicSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Blog/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\Blog\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/BookingManager/BookingManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\BookingManager\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/COPage/COPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\COPage\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Calendar/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilCalendarSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Certificate/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilCertificatSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Chatroom/Chatroom.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilChatroomSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Cloud/Cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilObjCloudModuleUpdateAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/CmiXapi/CmiXapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilCmiXapiSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 5 additions & 0 deletions components/ILIAS/Component/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ public function init(
array | \ArrayAccess &$internal,
): void {
$contribute[Component\EntryPoint::class] = fn() => new Component\EntryPoint\HelloWorld("Component/HelloWorld");

$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilComponentsSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/ContentPage/ContentPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilContentPageSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Course/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilCourseObjectiveSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Dashboard/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\Dashboard\Setup\ilDashboardUpdateAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/DataCollection/DataCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilDataCollectionSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/DataProtection/DataProtection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\DataProtection\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilDatabaseSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
6 changes: 5 additions & 1 deletion components/ILIAS/EmployeeTalk/EmployeeTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...

$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/EventHandling/EventHandling.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilEventHandlingSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Exercise/Exercise.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilExerciseSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/File/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilFileObjectAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/FileDelivery/FileDelivery.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\FileDelivery\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/FileServices/FileServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilFileServicesSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilFileSystemSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Forum/Forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilForumSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/GlobalCache/GlobalCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilGlobalCacheSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/GlobalScreen/GlobalScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilGlobalScreenSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Glossary/Glossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilGlossarySetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Help/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ILIAS\Help\Setup\Agent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
5 changes: 4 additions & 1 deletion components/ILIAS/Http_/Http_.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function init(
array | \ArrayAccess &$pull,
array | \ArrayAccess &$internal,
): void {
// ...
$contribute[\ILIAS\Setup\Agent::class] = fn() =>
new \ilHttpSetupAgent(
$pull[\ILIAS\Refinery\Factory::class]
);
}
}
Loading

0 comments on commit d5ff50b

Please sign in to comment.