ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
bootstrap.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of Component Installer.
5  *
6  * (c) Rob Loach (http://robloach.net)
7  *
8  * For the full copyright and license information, please view the LICENSE.md
9  * file that was distributed with this source code.
10  */
11 
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 }
27 
28 return $loader;
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