Deprecation: #86907 - Deprecate usage of dependency injection with non public properties¶
See Issue #86907
The dependency injection via properties has been deprecated for all properties that are non public.
While there are several reasons not to use property injection at all there is one specific drawback with non public properties. To be able to inject dependencies into non public properties, said properties have to be made accessible during runtime. As that process is quite slow and expensive and non cachable, it should not be used at all.
Dependency injection will no longer work with non public properties
All installations that use dependency injection with non public properties.
The easiest, yet ugliest migration is to make the property public. If possible, switch to constructor or setter injection instead.