- Issue created by @kaszarobert
- First commit to issue fork.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 8last update
10 months ago Not currently mergeable. - @sandipta opened merge request.
- Merge request !17Issue #3388151: Avoid static \Drupal calls inside class methods and use proper DI → (Open) created by sandipta
- last update
10 months ago 8 pass - 🇩🇪Germany simonbaese Berlin
Hi Sandipta,
can we please discuss the scope of this issue? I think the title suggests changes that are too broad and it will make the review hard. Maybe we can restrict ourselves to plugins first.
I see that you started to introduce changes in the merge request. But there are many other plugins that also make static calls to the container.
From static analysis I can see:
GoogleAnalyticsCounterResultProcessorPluginBase
fixed in MR (see comments)/Plugin/GoogleAnalyticsCounterResultProcessor/DefaultResultProcessor
/Plugin/GoogleAnalyticsCounterResultProcessor/DefaultResultProcessor
/Plugin/GoogleAnalyticsCounterResultProcessor/UrlAliasResultProcessor
/Plugin/QueueWorker/GoogleAnalyticsCounterQueueBase
It is a little bit unusual that the plugin base is not in the
Plugin/
namespace.Also, I think it is best practice to make your changes in the issue branch (in this case 3388151-avoid-static-drupal) rather than directly in the fork. And then make a merge request from the issue branch to the actual repository. But maybe it doesn't matter.
- last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 7 pass, 2 fail - last update
10 months ago 7 pass, 2 fail - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - last update
10 months ago 8 pass - 🇩🇪Germany simonbaese Berlin
@sandipta What is the status on this issue? Do you need help to progress?
- 🇮🇳India sandipta
Checked everything,two files remain where DI hasn't been implemented yet:
1. src/Plugin/GoogleAnalyticsCounterResultProcessor/UrlAliasResultProcessor.php
2. src/GoogleAnalyticsCounterHelper.phpI'll begin working on them soon.
@simonbaese - last update
7 months ago 8 pass - First commit to issue fork.
- Merge request !1google_analytics_counter-3388151: Implemented dependency injection in... → (Open) created by Sapnakhatri
- Status changed to Needs review
3 months ago 1:04pm 7 May 2024 - 🇮🇳India Sapnakhatri
I have updated the MR, added DI in the remaining files. Please review.
- First commit to issue fork.