ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
bootstrap.php File Reference

Go to the source code of this file.

Functions

 includeIfExists ($file)
 

Variables

if((! $loader=includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&(! $loader=includeIfExists(__DIR__ . '/../../../autoload.php'))) return $loader
 

Function Documentation

◆ includeIfExists()

includeIfExists (   $file)

@noinspection PhpIncludeInspection

Definition at line 12 of file bootstrap.php.

13{
14 if (file_exists($file)) {
16 return include $file;
17 }
18
19 return null;
20}
21
22if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) {
23 die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
24 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
25 'php composer.phar install'.PHP_EOL);
26}
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file
includeIfExists($file)
Definition: bootstrap.php:12
if((! $loader=includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&(! $loader=includeIfExists(__DIR__ . '/../../../autoload.php'))) return $loader
Definition: bootstrap.php:22

References $file.

Variable Documentation

◆ $loader

if ((! $loader=includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&(! $loader=includeIfExists(__DIR__ . '/../../../autoload.php'))) return $loader

Definition at line 28 of file bootstrap.php.