- Issue created by @godotislate
- @godotislate opened merge request.
- Status changed to Needs review
almost 2 years ago 3:16pm 28 March 2023
Per https://www.drupal.org/node/3194517 → ,
For Drupal 9 a deprecation will be issued if a service is manually created without specifying either private or public, this will be required from Drupal 10.0.0 onwards.
Services are created private as default in Symfony 5 and Drupal expects services to be public. Drupal 9 uses Symfony 4.4 and Drupal 10 will use Symfony > 5.4.
All services created from SOMEMODULE.services.yml are changed to public by default. Only services created like:
Drupal\viewfield\ViewfieldServiceProvider creates a service definition and needs to set service public.
Add $service_definition->setPublic(TRUE);
Needs review
3.0
Code