The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
almost 2 years ago 11:12pm 10 February 2023 - Status changed to RTBC
almost 2 years ago 10:03pm 13 February 2023 - 🇮🇹Italy mondrake 🇮🇹
Looks good to me. RTBC.
Going OT a bit: how about https://symfony.com/doc/current/service_container/autowiring.html#dealin...? This would help autowiring for cache bins and for loggers like e.g.
cache.default: class: Drupal\Core\Cache\CacheBackendInterface tags: - { name: cache.bin } factory: ['@cache_factory', 'get'] arguments: [default] Drupal\Core\Cache\CacheBackendInterface $cacheDefault: '@cache.default'
- 🇬🇧United Kingdom longwave UK
Thanks. Not sure yet what approach would work for cache bins (feel free to open a followup!), but for loggers I think binding a default per module could work, see #3295542-3: Use logger channel services consistently, instead of the factory object → .
- Status changed to Needs work
over 1 year ago 2:49pm 16 April 2023 - last update
over 1 year ago 29,202 pass - Status changed to RTBC
over 1 year ago 6:01pm 16 April 2023 - last update
over 1 year ago 29,283 pass - last update
over 1 year ago 29,300 pass - last update
over 1 year ago 29,302 pass - last update
over 1 year ago 29,304 pass - last update
over 1 year ago 29,320 pass, 3 fail - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago 29,364 pass, 1 fail - last update
over 1 year ago 29,366 pass - last update
over 1 year ago 29,367 pass - last update
over 1 year ago 29,374 pass - last update
over 1 year ago 29,379 pass - last update
over 1 year ago 29,379 pass 18:49 16:19 Running- last update
over 1 year ago 29,383 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,395 pass - last update
over 1 year ago 29,396 pass - last update
over 1 year ago 29,399 pass - last update
over 1 year ago 29,399 pass - last update
over 1 year ago 29,400 pass - last update
over 1 year ago 29,409 pass - last update
over 1 year ago 29,414 pass - last update
over 1 year ago 29,418 pass - Status changed to Needs work
over 1 year ago 4:55pm 7 June 2023 - 🇺🇸United States Amber Himes Matz Portland, OR USA
1. Looks like there is 1 unresolved comment (that got addressed but was never marked as resolved): https://git.drupalcode.org/project/drupal/-/merge_requests/3075#note_137045)
2. The merge request is currently blocked and needs a rebase.
Thank you!
- Status changed to RTBC
over 1 year ago 5:42pm 9 June 2023 - 🇬🇧United Kingdom longwave UK
Rebased and resolved the comment, back to RTBC.
- last update
over 1 year ago 29,420 pass - last update
over 1 year ago 29,420 pass - last update
over 1 year ago 29,426 pass - 🇬🇧United Kingdom catch
A lot of these services are ones I would never expect to be used outside the module. This issue doesn't really make that any more or less the case but wondering if we really want to do this for every service in core.
- 🇬🇧United Kingdom longwave UK
@catch the followup to this is 📌 Use autowiring for core modules and services Needs work where we can start using autowiring for real across core, and don't have to specify exact arguments any more for a large number of service definitions.
- Status changed to Fixed
over 1 year ago 1:09pm 14 June 2023 - 🇬🇧United Kingdom catch
Oh I didn't think about within the module itself... makes sense then.
Committed/pushed to 11.x (10.2.x), thanks!
- 🇮🇹Italy mondrake 🇮🇹
Filed 📌 [policy] Service autowiring - decide approach for multiple service implementations based on the same class and different arguments Needs work as a possible followup.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 1:49pm 6 October 2023 - 🇫🇷France andypost
It needs follow-up according to #3354584-14: Deprecate TrustedCallbackInterface in favour of TrustedCallback attribute →
some classes that used to implement interface now brings false positive
- 🇬🇧United Kingdom joachim
This needs a CR to say that most core services need an interface alias.
The test assertion and test docs also needs more detail, otherwise adding a new service to core just gets you this confusing test failure and you're left doing git archeology to find this issue :(
Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ 'Drupal\Core\Asset\AssetQueryStringInterface' => 'asset.query_string' 'Drupal\Core\Config\ConfigManagerInterface' => 'config.manager' 'Drupal\Core\Config\ConfigFactoryInterface' => 'config.factory' - 'Drupal\Core\Config\ConfigImporterFactory' => 'config.importer.factory' 'Drupal\Core\Config\ConfigInstallerInterface' => 'config.installer' 'Drupal\Core\Config\StorageCacheInterface' => 'config.storage' 'Drupal\Core\Config\ImportStorageTransformer' => 'config.import_transformer'
- 🇫🇷France andypost
We could use 🐛 Improve AutowireTest to ignore TrustedCallbackInterface Needs review for that