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

IBX-88: Overridden debug:config command to use custom ContainerBuilder & restored ezplatform BC #4

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Nov 25, 2021

Question Answer
JIRA issue IBX-88
Type improvement
Target Ibexa version v4.0
BC breaks no

This PR replaces Symfony debug:config command to be able to inject our own version of \Symfony\Bundle\FrameworkBundle\Command\BuildDebugContainerTrait which hardcodes ContainerBuilder usage. To be able to properly debug all extensions which use legacy names (both 1st party and 3rd party), we need to inject there our custom Ibexa Container Builder introduced via #3.

The only alternative way of overriding container builder there is via nasty Reflection usage: https://gist.github.com/alongosz/1a30cf7a2a8b30eb0f6806f68e972d2f. It produces less code, but is quite unclean.

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage. // requires rather full stack coverage like Behat, so rather not worth it in the broader context
  • Checked that target branch is set correctly (master for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review.

@alongosz alongosz requested review from Nattfarinn, ViniTou, adamwojs and a team November 26, 2021 01:16
@alongosz alongosz force-pushed the ibx-88-symfony-debug-cmds-workaround branch from ebe9a62 to 2f10239 Compare November 26, 2021 09:43
@alongosz alongosz requested a review from ViniTou November 26, 2021 09:44
@Nattfarinn Nattfarinn merged commit 026df09 into main Nov 26, 2021
@Nattfarinn Nattfarinn deleted the ibx-88-symfony-debug-cmds-workaround branch November 26, 2021 09:56
alongosz added a commit that referenced this pull request Dec 1, 2021
alongosz added a commit that referenced this pull request Dec 3, 2021
For more details see https://issues.ibexa.co/browse/IBX-1589

* Overridden config:dump-reference to use custom ContainerBuilder (similar to #4)

* Created extension name map
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.

3 participants