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

[FEATURE] Add support for composer.json only extensions #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DanielSiepmann
Copy link
Contributor

The internal array always uses the extension key.
Not having an ext_emconf.php with dependencies to extension keys, but only a composer.json with dependencies to package names will always result in:

UnexpectedValueException: The package "extension_key" depends on "composer/package-key" which is not present in the system.

This is a common situation in modern TYPO3 projects where multiple extensions are given which declare their internal dependencies to have proper TYPO3 loading order.

A fallback from the dependency (which might be the composer name) to the actual extension key is added.

Resolves: #541

@oliverklee
Copy link
Contributor

Should this only go into the main branch, or would it make sense to backport it to 7.x as well?

@DanielSiepmann
Copy link
Contributor Author

I'm fine with both. I personally need this in one project where we apply this as a patch.
I'd leave this up to the maintainer to decide.

@DanielSiepmann DanielSiepmann marked this pull request as draft February 15, 2024 06:38
@DanielSiepmann
Copy link
Contributor Author

Looks like there is somehow an issue with loading order within acceptance tests … I'll investiage.

The internal array always uses the extension key.
Not having an ext_emconf.php with dependencies to extension keys, but
only a composer.json with dependencies to package names will always
result in:

    UnexpectedValueException: The package "extension_key" depends on "composer/package-key" which is not present in the system.

This is a common situation in modern TYPO3 projects where multiple
extensions are given which declare their internal dependencies to have
proper TYPO3 loading order.

A fallback from the dependency (which might be the composer name) to the
actual extension key is added.

Resolves: TYPO3#541
@DanielSiepmann DanielSiepmann marked this pull request as ready for review February 15, 2024 07:58
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.

Add support for dependencies to TYPO3 Extensions without ext_emconf.php
2 participants