Skip to content

Commit

Permalink
Fix PHP 8.0 compatibility on apigee#918
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr576 committed Sep 6, 2023
1 parent cdcf64a commit 1373c48
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,34 @@
use Drupal\apigee_edge\User\PostUserDeleteActionPerformerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\user\UserInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;

/**
* Ensures team roles of the removed user also get deleted.
*/
final class RemoveTeamRolesOfUserSynchronousPostUserDeleteActionPerformer implements PostUserDeleteActionPerformerInterface {

/**
* The decorated service.
*
* @var \Drupal\apigee_edge\User\PostUserDeleteActionPerformerInterface
*/
private PostUserDeleteActionPerformerInterface $decorated;

/**
* Entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
private EntityTypeManagerInterface $entityTypeManager;

/**
* Constructs a new object.
*/
public function __construct(private readonly PostUserDeleteActionPerformerInterface $decorated, private readonly EntityTypeManagerInterface $entityTypeManager, private readonly LoggerInterface $logger) {}
public function __construct(PostUserDeleteActionPerformerInterface $decorated, EntityTypeManagerInterface $entityTypeManager) {
$this->entityTypeManager = $entityTypeManager;
$this->decorated = $decorated;
}

/**
* {@inheritdoc}
Expand Down

0 comments on commit 1373c48

Please sign in to comment.