diff --git a/lib/Enterprise/CliFramework.php b/lib/Enterprise/CliFramework.php index 91a9a0b..ab4534e 100644 --- a/lib/Enterprise/CliFramework.php +++ b/lib/Enterprise/CliFramework.php @@ -171,6 +171,13 @@ abstract class CliFramework */ public function __construct(string $name = '', string $version = '04.00.15') { + // Load Composer autoloader for Enterprise classes (SourceResolver, etc.) + $autoloader = __DIR__ . '/../../vendor/autoload.php'; + + if (file_exists($autoloader)) { + require_once $autoloader; + } + $this->scriptName = $name ?: basename($_SERVER['argv'][0] ?? 'script', '.php'); $this->scriptVersion = $version; $this->startTime = microtime(true);