ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
PHPVersionCondition.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5namespace ILIAS\Setup;
6
8{
9 public function __construct($which)
10 {
12 "PHP version >= $which",
13 function (Environment $env) use ($which) : bool {
14 return version_compare(phpversion(), $which, ">=");
15 },
16 "ILIAS 6 requires PHP $which or later."
17 );
18 }
19}
An exception for terminatinating execution or to throw for unit testing.
A condition that can't be met by ILIAS itself needs to be met by some external means.
An environment holds resources to be used in the setup process.
Definition: Environment.php:12
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc