You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logger instances may be required to be available during object
construction, LoggerAwareInterface isn't an option in that case.
Therefore \Psr\Log\LoggerInterface as constructor argument is now
autowired (if the service is configured to use autowiring) and
instantiated with an object-specific logger.
Impact
Services are no longer required to use \Psr\Log\LoggerAwareInterface
and \Psr\Log\LoggerAwareTrait, but can add a constructor argument \Psr\Log\LoggerInterface instead.
Feature: #95044 - Support autowired LoggerInterface injection
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Feature-95044-SupportAutowiredLoggerInterfaceInjection.html
Feature: #95044 - Support autowired LoggerInterface injection
See 95044
Description
Logger instances may be required to be available during object
construction, LoggerAwareInterface isn't an option in that case.
Therefore
\Psr\Log\LoggerInterface
as constructor argument is nowautowired (if the service is configured to use autowiring) and
instantiated with an object-specific logger.
Impact
Services are no longer required to use
\Psr\Log\LoggerAwareInterface
and
\Psr\Log\LoggerAwareTrait
, but can add a constructor argument\Psr\Log\LoggerInterface
instead.Example:
PHP-API, ext:core
The text was updated successfully, but these errors were encountered: