This module is incompatible with Monolog, because it uses the logger implementation, rather than the interface.

If both modules are enabled, the following error occurs:

TypeError: Argument 5 passed to Drupal\autologout\AutologoutManager::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\monolog\Logger\MonologLoggerChannelFactory given, called in /var/www/core/lib/Drupal/Component/DependencyInjection/Container.php on line 297 in Drupal\autologout\AutologoutManager->__construct() (line 107 of modules/contrib/autologout/src/AutologoutManager.php).

See also #3031246: Use LoggerFactoryInterface instead of LoggerFactory and https://www.drupal.org/project/openid_connect/issues/2854666#comment-121...

CommentFileSizeAuthor
#2 autologout-interface-3124678-2.patch1.37 KBmalcomio

Comments

malcomio created an issue. See original summary.

malcomio’s picture

Status: Active » Needs review
StatusFileSize
new1.37 KB
boshtian’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#3124143: Use LoggerChannelFactoryInterface instead of LoggerChannelFactory

Same patch already in #3124143: Use LoggerChannelFactoryInterface instead of LoggerChannelFactory. Marking this as duplicate, please review the patch there.

boshtian’s picture