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)

PhpIncludeInspection

Definition at line 12 of file bootstrap.php.

References $file.

13 {
14  if (file_exists($file)) {
16  return include $file;
17  }
18 
19  return null;
20 }
21 
22 if ((!$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 }
includeIfExists($file)
Definition: bootstrap.php:12
if((! $loader=includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&(! $loader=includeIfExists(__DIR__ . '/../../../autoload.php'))) return $loader
Definition: bootstrap.php:22
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

Variable Documentation

◆ $loader

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

Definition at line 22 of file bootstrap.php.