Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2016 at 08:53 UTC
Updated:
1 Jul 2016 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerNote: The same problem exists in the symfony implementation as well. They call it by design.
Comment #3
fabianx commentedComment #4
fabianx commented#2: Symfony works fine, for the use case tested here.
Comment #5
dawehnerI just ran fabian's example code against symfony master, see patch file, to prove that this kind of syntax works. Wow.
Comment #9
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!
Comment #10
wim leersI'd swear I opened an issue for this months ago…
Comment #11
wim leersThis seems very closely related to #2650812: Container::has() doesn't work for service aliases (consequently, decorating services doesn't work). Reopening this to assess its relation to that issue. Then we can mark this again.
Comment #12
wim leersIn any case, this was a bugfix for #2497243: Replace Symfony container with a Drupal one, stored in cache.
Comment #13
fabianx commentedMarking back as fixed as this is a very special case that should never happen in Core as ContainerBuilder is compile'd().
I will take a look at the other issue to assess it.
Comment #14
wim leersThanks!