Problem/Motivation
If both the CAS module and the Tracer module v 1.1.0 and up (dependency of the Webprofiler module) are installed, you cannot clear cache as the when the service container is compiled, a ServiceNotFoundException is thrown in the CAS module's DeprecatedEventConstants.php class when it tries to load the `event_dispatcher` service:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "event_dispatcher". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 1042 of /vendor/symfony/dependency-injection/ContainerBuilder.php).
I guess this is because the Tracer module also has a compiler pass that decorates the event dispatcher which executes before CAS' compiler pass. I don't know why decorating a service prevents the service from being loaded in this compiler pass though?
Steps to reproduce
Install both CAS 3.0.0-beta4 and Tracer 1.2.1. Clear cache. Observe ServiceNotFoundException.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork cas-3545528
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
giaczug commentedComment #5
lussolucaComment #6
giaczug commentedComment #7
bkosborneThanks guaczug - I'll merge that in, but it seems unrelated to this issue and is instead a resolution for #3549585: PHPStan failure in tests.
Comment #8
bkosborneAlso I tried giving you issue credit in #3549585: PHPStan failure in tests but for some reason your username is not selectable when adding a new contributor
Comment #9
giaczug commentedHi @bkosborne,
thanks for your reply!
Let me try to clarify my changes more precisely:
Therefore:
Can you confirm that this is correct?
Comment #10
bkosborneSorry, yes, that's correct. I'm not sure why I didn't see the other commit yesterday. Thank you. I'll close this as fixed and update the release notes too.
Comment #12
giaczug commentedThank you bkosborne,
I also see that you have assigned me credits!
So has the issue with my username not being selectable been resolved?
Comment #13
bkosborneYes! not sure what happened there yesterday.