Skip to content
New issue

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

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

Already on GitHub? # to your account

EZP-30546: Several core services risks having wrong instance due to early config resolver use #2649

Merged
merged 3 commits into from
May 20, 2019

Conversation

andrerom
Copy link
Contributor

@andrerom andrerom commented May 20, 2019

Question Answer
JIRA issue EZP-30546
Bug/Improvement yes
Target version 6.7
BC breaks no
Tests pass yes
Doc needed no

This fixes warnings that will show up in EE 1.7 once #2636 is merged.
TL;DR; Commands are loaded to get their name long before siteaccess event is fired, so they have services with wrong SA settings injected.

Partly replaces #2634 with aim to have fix for all branches, and w/o having to rely on lazy commands unless needed (remaining cases will be commands directly or indirectly relying on config resolver in ctor/configure/init, @alongosz should be happy :) ).

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@andrerom andrerom merged commit ff4c2e1 into 6.7 May 20, 2019
@andrerom andrerom deleted the EZP-30546 branch May 20, 2019 16:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants