From 50e6e836ee6f8677bbd1818a52e49aa785b89fd6 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sat, 27 Dec 2025 22:53:30 +0100 Subject: [PATCH] add support for _composer_autoload_path super global --- bin/mate.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/mate.php b/bin/mate.php index 2ad96ef..6984794 100644 --- a/bin/mate.php +++ b/bin/mate.php @@ -15,6 +15,10 @@ $autoloadPaths = [ __DIR__.'/../vendor/autoload.php', // Package autoloader (fallback) ]; +if (isset($GLOBALS['_composer_autoload_path'])) { + array_unshift($autoloadPaths, $GLOBALS['_composer_autoload_path']); +} + $root = null; foreach ($autoloadPaths as $autoloadPath) { if (file_exists($autoloadPath)) {