Skip to content

Commit

Permalink
bug(next): use LoggerInterface from psr/log
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm authored and marcorcau committed Mar 26, 2024
1 parent badff2b commit e8cfe78
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\next\EventSubscriber;

use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\next\NextEntityTypeManagerInterface;
use Drupal\next\NextSettingsManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

Expand All @@ -30,9 +30,9 @@ abstract class EntityActionEventSubscriberBase implements EventSubscriberInterfa
/**
* The logger channel.
*
* @var \Drupal\Core\Logger\LoggerChannelInterface
* @var \Psr\Log\LoggerInterface
*/
protected LoggerChannelInterface $logger;
protected LoggerInterface $logger;

/**
* The event dispatcher.
Expand All @@ -48,12 +48,12 @@ abstract class EntityActionEventSubscriberBase implements EventSubscriberInterfa
* The next entity type manager.
* @param \Drupal\next\NextSettingsManagerInterface $next_settings_manager
* The next settings manager.
* @param \Drupal\Core\Logger\LoggerChannelInterface $logger
* @param \Psr\Log\LoggerInterface $logger
* The logger channel.
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher
* The event dispatcher.
*/
public function __construct(NextEntityTypeManagerInterface $next_entity_type_manager, NextSettingsManagerInterface $next_settings_manager, LoggerChannelInterface $logger, EventDispatcherInterface $event_dispatcher) {
public function __construct(NextEntityTypeManagerInterface $next_entity_type_manager, NextSettingsManagerInterface $next_settings_manager, LoggerInterface $logger, EventDispatcherInterface $event_dispatcher) {
$this->nextEntityTypeManager = $next_entity_type_manager;
$this->nextSettingsManager = $next_settings_manager;
$this->logger = $logger;
Expand Down

0 comments on commit e8cfe78

Please sign in to comment.