Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Use GeneralUtility::getFileAbsFileName for resolving web assets #225

Merged
merged 1 commit into from
Dec 17, 2021
Merged

[TASK] Use GeneralUtility::getFileAbsFileName for resolving web assets #225

merged 1 commit into from
Dec 17, 2021

Conversation

ohader
Copy link
Contributor

@ohader ohader commented Dec 16, 2021

Due to upcoming changes in typo3/cms-composer-installers v4.0.0
(currently available as RC1), composer packages are not linked
anymore to public folder typo3conf/ext/extension_name/.

As a result, web assets need to be resolved accordingly, see
https://github.com/TYPO3/CmsComposerInstallers/releases/tag/v4.0.0-RC1

In this particular scenario the change is simple, but (now) with
a corresponding distinction between "extension path" and "public
extension resources path":

  • PathUtility::getAbsoluteWebPath('EXT:extension_name/') resolves
    to corresponding (private) folder in Composer vendor/ folder
  • PathUtility::getAbsoluteWebPath('EXT:extension_name/Resources/Public')
    resolves to (virtual) public path typo3conf/ext/

Fixes: https://forge.typo3.org/issues/96374

Due to upcoming changes in typo3/cms-composer-installers v4.0.0
(currently available as RC1), composer packages are not linked
anymore to public folder typo3conf/ext/extension_name/.

As a result, web assets need to be resolved accordingly, see
https://github.com/TYPO3/CmsComposerInstallers/releases/tag/v4.0.0-RC1

In this particular scenario the change is simple, but (now) with
a corresponding distinction between "extension path" and "public
extension resources path":
* `PathUtility::getAbsoluteWebPath('EXT:extension_name/')` resolves
  to corresponding (private) folder in Composer `vendor/` folder
* `PathUtility::getAbsoluteWebPath('EXT:extension_name/Resources/Public')`
  resolves to (virtual) public path `typo3conf/ext/`

Fixes: https://forge.typo3.org/issues/96374
@fsuter
Copy link
Contributor

fsuter commented Dec 17, 2021

Thanks a lot for going all the way and submitting a PR. Just a question: is the change compatible with TYPO3 v10, since the current branch of the extension covers both 10 and 11?

@ohader
Copy link
Contributor Author

ohader commented Dec 17, 2021

Thanks a lot for going all the way and submitting a PR. Just a question: is the change compatible with TYPO3 v10, since the current branch of the extension covers both 10 and 11?

Yes, it does & I just verified that as well in a local TYPO3 v10 installation.

@fsuter
Copy link
Contributor

fsuter commented Dec 17, 2021

Thanks for having verified!

@fsuter fsuter merged commit 5b5e1df into cobwebch:master Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants