ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PHPExtensionLoadedCondition.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup\Condition;
22
23use ILIAS\Setup;
24
26{
27 public function __construct(string $which)
28 {
29 $ilias_version = ILIAS_VERSION_NUMERIC;
30
32 "PHP extension \"$which\" loaded",
33 fn (Setup\Environment $env): bool => in_array($which, get_loaded_extensions()),
34 "ILIAS $ilias_version requires the PHP extension $which."
35 );
36 }
37}
A condition that can't be met by ILIAS itself needs to be met by some external means.
const ILIAS_VERSION_NUMERIC
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...