Problem/Motivation
\Drupal\group\GroupServiceProvider::alter triggers the following deprecation:
Not marking service definitions as public is deprecated in drupal:9.2.0 and is required in drupal:10.0.0. Call $definition->setPublic(TRUE) before calling ::setDefinition(). See https://www.drupal.org/node/3194517
setPublic() exists, so this should be safe to fix anytime.
Reporting this mostly because it's not trivial to find which service is actually causing this in a project with a lot of modules, unfortunately the deprecation messages does not mention which service is causing it.
Steps to reproduce
Proposed resolution
add $definition->setPublic(TRUE)
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
berdiroh, this is actually in group module, moving.
Comment #3
berdirComment #4
siddhant.bhosale commentedComment #5
kristiaanvandeneyndeComment #8
kristiaanvandeneyndeFixed, thanks.