mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
Use composer for some libraries (twig, phpmailer, semver)
This commit is contained in:
parent
9fe419cfe7
commit
73f1ba10f9
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,6 +3,10 @@ Thumbs.db
|
||||
.idea
|
||||
tmp
|
||||
|
||||
# composer
|
||||
composer.lock
|
||||
vendor
|
||||
|
||||
releases
|
||||
config.local.php
|
||||
PERSONAL_NOTES
|
||||
|
@ -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;
|
||||
|
7
composer.json
Normal file
7
composer.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"require": {
|
||||
"phpmailer/phpmailer": "^6.1",
|
||||
"composer/semver": "^3.2",
|
||||
"twig/twig": "~1.42.5"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user