Problem/Motivation
Follow-up from #3401730: Add default autoconfigure to all *.services.yml and remove event_subscriber tags
jsonapi.resource_response_validator.subscriber sets a priority and was considered not eligible for autoconfiguration.
However, priority on event subscribers is meaningless; priority is configured in the getSubscribedEvents() method.
Steps to reproduce
Proposed resolution
Enable autoconfiguration and remove all event_subscriber tags in jsonapi.services.yml.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3401993
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 #2
longwavePersonally I think this is the wrong fix and the error is in jsonapi.services.yml; I don't see how the priority of
jsonapi.resource_response_validator.subscriberhas any effect.Comment #3
longwaveComment #5
longwaveIf this passes then this issue needs rescoping as we can simply enable autoconfiguration in JSON:API. RegisterEventSubscribersPass doesn't look at the
priorityof the tag at all.Comment #6
longwaveComment #7
smustgrave commentedVerified all { name: event_subscriber } have been replaced in the jsonapi.services file.
Comment #8
kim.pepperYeah, I think if the priority isn't actually used,and tests pass without it then we are good. RTBC+1
Comment #9
wim leersI thought this was about
jsonapi.settingsor something 😇 Changed title.Nice simplification/clean-up! 😄
Comment #10
alexpottCommitted and pushed 6c9abc44c4 to 11.x and 9fa4a048e5 to 10.3.x. Thanks!