Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (22 sloc) 0.729 kb
3264358 @Seldaek Fix line endings
Seldaek authored
1 <?php
2
3 /*
4 * This file is part of Composer.
5 *
6 * (c) Nils Adermann <naderman@naderman.de>
7 * Jordi Boggiano <j.boggiano@seld.be>
8 *
9 * For the full copyright and license information, please view the LICENSE
10 * file that was distributed with this source code.
11 */
12
1bd4ccb @Seldaek php-cs-fixer magic
Seldaek authored
13 function includeIfExists($file)
14 {
3264358 @Seldaek Fix line endings
Seldaek authored
15 if (file_exists($file)) {
16 return include $file;
17 }
18 }
19
20 if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
21 die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
22 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
23 'php composer.phar install'.PHP_EOL);
24 }
25
26 return $loader;
Something went wrong with that request. Please try again.