From df68007579e772b89114d03b687f8307090bf044 Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Thu, 17 Feb 2022 17:10:53 +0100 Subject: [PATCH] Fix autoload path --- composer.json | 3 ++- composer.lock | 5 +++-- mantis2github | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index f2cab1b..d7c8333 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ "guzzlehttp/guzzle": "^7.3.0", "symfony/console": "^5.0", "symfony/yaml": "^5.0", - "nunomaduro/termwind": "^1.5" + "nunomaduro/termwind": "^1.5", + "composer-runtime-api": "^2.2" } } diff --git a/composer.lock b/composer.lock index 63b6736..e5e1129 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6a8fb6cc5614d26ba68ff629b04a6be1", + "content-hash": "ec594cb800ea7409cd88b811aed33f64", "packages": [ { "name": "guzzlehttp/guzzle", @@ -1581,7 +1581,8 @@ "prefer-lowest": false, "platform": { "php": ">=7.4", - "ext-json": "*" + "ext-json": "*", + "composer-runtime-api": "^2.2" }, "platform-dev": [], "plugin-api-version": "2.2.0" diff --git a/mantis2github b/mantis2github index c927056..6a83c4d 100644 --- a/mantis2github +++ b/mantis2github @@ -12,7 +12,7 @@ (new class() { public function main() { - require_once __DIR__ . '/vendor/autoload.php'; + require_once $_composer_autoload_path ?? __DIR__ . '/vendor/autoload.php'; $configValues = (new \Artemeon\M2G\Config\ConfigReader())->read(); $githubConnector = new \Artemeon\M2G\Service\GithubConnector($configValues);