Skip to content

Commit

Permalink
Add missing drupal:user dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed May 27, 2020
1 parent 386b58e commit 3a42c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Logger/Sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Drupal\Core\Logger\LogMessageParserInterface;
use Drupal\Core\Logger\RfcLoggerTrait;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\user\UserInterface;
use Drupal\wmsentry\Event\SentryBeforeBreadcrumbEvent;
use Drupal\wmsentry\Event\SentryBeforeSendEvent;
use Drupal\wmsentry\Event\SentryOptionsAlterEvent;
Expand Down Expand Up @@ -43,7 +44,7 @@ class Sentry implements LoggerInterface
protected $eventDispatcher;
/** @var ModuleHandlerInterface */
protected $moduleHandler;
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface */
/** @var EntityTypeManagerInterface */
protected $entityTypeManager;

public function __construct(
Expand Down Expand Up @@ -246,7 +247,7 @@ protected function getUserData(array $context): array
return $data;
}

/* @var \Drupal\user\Entity\User $user */
/* @var UserInterface $user */
$user = $this->entityTypeManager->getStorage('user')->load($context['uid']);

if ($user) {
Expand Down
2 changes: 2 additions & 0 deletions wmsentry.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ description: A module for sending errors to Sentry in Drupal 8.
core: 8.x
core_version_requirement: ^8 || ^9
package: Wieni
dependencies:
- drupal:user

0 comments on commit 3a42c10

Please sign in to comment.