diff --git a/typo3 b/typo3 index 5314467..5163344 100755 --- a/typo3 +++ b/typo3 @@ -18,7 +18,7 @@ * that executes commands */ call_user_func(function() { - $classLoader = require __DIR__ . '/../../autoload.php'; + $classLoader = require ($GLOBALS['_composer_autoload_path'] ?? __DIR__ . '/../../autoload.php'); \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_CLI); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, true)->get(\TYPO3\CMS\Core\Console\CommandApplication::class)->run(); });