forked from eventum/eventum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoload.php
31 lines (24 loc) · 842 Bytes
/
autoload.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
* This file is part of the Eventum (Issue Tracking System) package.
*
* @copyright (c) Eventum Team
* @license GNU General Public License, version 2 or later (GPL-2+)
*
* For the full copyright and license information,
* please see the COPYING and AUTHORS files
* that were distributed with this source code.
*/
// this needs to be setup before autoload itself
define('APP_PHP_GETTEXT_PATH', APP_PATH . '/vendor/php-gettext/php-gettext');
if (!file_exists($autoload = APP_PATH . '/vendor/autoload.php')) {
echo <<<EOF
You must set up the project dependencies, run the following commands:
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
EOF;
exit(1);
}
require $autoload;
// fonts directory for phplot
define('APP_FONTS_PATH', APP_PATH . '/vendor/fonts/liberation');