从 TYPO3 11 LTS 开始,typo3
二进制文件不再位于其中sysext/core/bin/
,至少不在作曲家模式下,所以我需要找到一种新方法来bin-dir
在作曲家模式下找到来自作曲家的位置。
我应该使用 composer/composer 包来解析它吗?我需要root
作曲家,而不是 TYPO3 Crawler 的作曲家。
if (TYPO3_COMPOSER_MODE) {
// How to find the composer-bin dir?
} else {
$typo3BinaryPath = ExtensionManagementUtility::extPath('core') . 'bin/';
}
关于如何处理这个问题的任何建议?一个选项可能是将其添加为设置,因此它是扩展设置的一部分。