Closed (fixed)
Project:
Drupal core
Version:
9.0.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jul 2019 at 17:15 UTC
Updated:
9 Nov 2020 at 09:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottImo this is something we fix in drupal 9 by removing this code because it breaks with Symfony 4. We don't want to provide a BC / feature layer for Drupal 9 to support this. And nothing in core actually triggers this error. There's nothing we can do here on d8... people need to do as the deprecation says...
Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use aliases instead for "%s"...So I'd recommend moving this issue to Drupal 9.
Comment #3
mikelutzPostponed on D9 branch opening
Comment #5
xjmI expected that this issue would have been solved elsewhere during D9 development, but I just grepped and:
Is there something we should try to do here as a beta target? What would a fix look like?
Comment #6
longwaveThis issue would be sidestepped if we did #3111008: Use native Symfony YamlFileLoader instead.
Comment #7
pasqualleComment #8
xjmCleaning up leftover beta targets from 9.0.x.
Comment #9
Pooja Ganjage commentedHi,
I am creating a patch for this issue.
Please review the patch.
Let me know for any suggestions.
Thanks.
Comment #10
Pooja Ganjage commentedComment #11
alexpott@Pooja Ganjage what needs to happen here is all of the follow coding removed...
It is completely broken in Drupal 9 as
$definition->addAutowiringType()does not exist.Comment #12
anmolgoyal74 commentedComment #13
anmolgoyal74 commentedComment #14
longwaveThe patch looks great, this is the only mention of this feature in core. However, this is also the only place the word "autowiring" appears and so it should be removed from core/misc/cspell/dictionary.txt as part of this patch.
Once this is done this can be marked RTBC.
Comment #15
anmolgoyal74 commentedAddressed #14
Comment #16
longwaveThanks!,
Comment #17
alexpottThis is a bug. If your services.yml had
autowiring_typesthen this code would trigger an error.Committed 29397a9 and pushed to 9.2.x. Thanks!
Will backport after 9.1.x alpha and discussion with release managers.
Comment #19
alexpottBackported to 9.0.x because this is dead broken code.
Comment #22
alexpott