Skip to content

Commit

Permalink
Merge pull request #7 from helhum/bugfix/allow-linked-package
Browse files Browse the repository at this point in the history
[BUGFIX] Use correct autoload path, in case this package is linked
  • Loading branch information
bmack authored Aug 15, 2023
2 parents 1572143 + 2fb4106 commit d894773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit d894773

Please sign in to comment.