Skip to content
Snippets Groups Projects

Issue #3367416: More service autowiring by adding interface aliases for multiple service implementation classes

Closed Issue #3367416: More service autowiring by adding interface aliases for multiple service implementation classes
1 unresolved thread
Closed mondrake requested to merge issue/drupal-3367416:3367416-more-service-autowiring into 11.x
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
55 * @param \Psr\Log\LoggerInterface|null $logger
41 * @param \Psr\Log\LoggerInterface|null $loggerWorkspaces
56 42 * The logger.
57 43 */
58 public function __construct(Connection $connection, EntityTypeManagerInterface $entity_type_manager, WorkspaceRepositoryInterface $workspace_repository, protected ?LoggerInterface $logger = NULL) {
59 $this->database = $connection;
60 $this->entityTypeManager = $entity_type_manager;
61 $this->workspaceRepository = $workspace_repository;
62 if ($this->logger === NULL) {
63 @trigger_error('Calling ' . __METHOD__ . '() without the $logger argument is deprecated in drupal:10.1.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/2932520', E_USER_DEPRECATED);
64 $this->logger = \Drupal::service('logger.channel.workspaces');
44 public function __construct(
45 protected readonly Connection $database,
46 protected readonly EntityTypeManagerInterface $entityTypeManager,
47 protected readonly WorkspaceRepositoryInterface $workspaceRepository,
48 ?LoggerInterface $loggerWorkspaces = NULL,
Please register or sign in to reply
Loading