
By mfb on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
Services can now depend on a new config.factory.lazy
service, a drop-in replacement for config.factory
which lazily loads the config.factory
service if/when it is actually needed. This works around a circular reference that appeared if a config storage dependency (such as an alternative cache backend) required logging, and a logger depended on config storage.
The \Drupal\syslog\Logger\SysLog
service now depends on config.factory.lazy
rather than config.factory
.
Impacts:
Module developers