Issue Bug Closed

#101590Composer package vendors for TYPO3 extensions ending with "ext" don't get symlinked into public/_assets

Georg Ringer 08/05/23, 10:54 updated 07/09/24, 14:15

Description

this has been reported at stackoverflow at https://stackoverflow.com/questions/76829256/composer-package-vendors-for-typo3-extensions-ending-with-ext-dont-get-symlin

When the composer package vendor of a TYPO3 extension ends with “ext”, the “Resources/Public” directory of the extension does not get symlinked into public/_assets.

Example: typo3_ext/my_extension

This is because of this line:

vendor/typo3/cms-core/Classes/Composer/PackageArtifactBuilder.php:264

if (str_contains($path, 'ext/' . $extensionKey) || !file_exists($fileSystemResourcesPath)) {
    continue;
}

When it is changed to this, it works for me:

if (str_contains($path, '/ext/' . $extensionKey) || !file_exists($fileSystemResourcesPath)) {
    continue;
}

Since $path contains the full path, I guess that change should be OK?

TYPO3 12.4.4

Reviews 2