-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Update registration files formatting #2204
Update registration files formatting #2204
Conversation
There is a failure in integration tests after these changes:
|
@orlangur I'll run the test locally to see what's setting it off and post back when I figure it out. |
92c6935
to
bbede11
Compare
@orlangur This should be taken care of in bbede1146. The issue was |
Good 👍 I supposed it was a fragile test rather than a new problem introduced by changes. |
The `DependenciesShowFrameworkCommandTest` implementation relied on an assumption that there were two references to `Magento\Framework` in the mock modules. Since the change to the registration.php files reduced this to one, the total dependency count dropped from 3 to 2.
bbede11
to
1d514f7
Compare
Internal ticket created: MAGETWO-46377 |
Thank you for your willingness to contribute, but I don't think we'll accept this right now, for the simple reason that it would be more consistent to make the corresponding changes to dozens of other modules in other packages (such as EE modules), and only internal developers have access to that. |
Any chance this might be re-looked at if I took the time to resolve the conflicts that have cropped up since it was closed in 2016? |
@davidalger could you provide an automated way to reproduce such changes? I don't think it is reasonable to resolve conflicts, we just need an automated way to do it quickly in ce/ee/b2b. Generally, I'm going to replace all FQCN with aliases, which will cover those |
@orlangur I will see what I can do. |
Hi @davidalger |
Hi @davidalger Do you need some help? |
Sorry it took me so long to get back to this. I've updated the branch and applied the change to all the new registration.php files. Here is how I did it:
|
@magento-team I don't see this PR in 2.2 as of 2.2.7. Should it be ported? |
@Ctucker9233 no, it shouldn't, and it cannot be actually according to current rules as it is just some cleanup. |
Adding a simple use statement to tighten up the code :)