mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-05 00:56:51 +01:00
Use composer for some libraries (twig, phpmailer, semver)
This commit is contained in:
@@ -67,6 +67,7 @@ define('PAGES', SYSTEM . 'pages/');
|
||||
define('PLUGINS', BASE . 'plugins/');
|
||||
define('TEMPLATES', BASE . 'templates/');
|
||||
define('TOOLS', BASE . 'tools/');
|
||||
define('VENDOR', BASE . 'vendor/');
|
||||
|
||||
// menu categories
|
||||
define('MENU_CATEGORY_NEWS', 1);
|
||||
@@ -115,4 +116,10 @@ if(!IS_CLI) {
|
||||
|
||||
require SYSTEM . 'exception.php';
|
||||
}
|
||||
require SYSTEM . 'autoload.php';
|
||||
|
||||
$autoloadFile = VENDOR . 'autoload.php';
|
||||
if (!is_file($autoloadFile)) {
|
||||
throw new RuntimeException('The vendor folder is missing. Please download Composer: <a href="https://getcomposer.org/download">https://getcomposer.org/download</a>, install it and execute in the main MyAAC directory this command: <b>composer install</b>. Or download MyAAC from <a href="https://github.com/slawkens/myaac/releases">GitHub releases</a>, which includes Vendor folder.');
|
||||
}
|
||||
|
||||
require $autoloadFile;
|
||||
|
||||
Reference in New Issue
Block a user