Add support for named arguments in services

Created on 25 November 2024, 27 days ago

Problem/Motivation

Drupal allows configuring named arguments in the services.yml file like this:

services:
 my_service:
    class: Drupal\my_module\MyService
    arguments:
      $configFactory: '@config.factory'
      $languageManager: '@language_manager'
      $logger: '@logger.channel.commercetools'
      $httpClientFactory: '@http_client_factory'
      $cacheBackend: '@cache.default'

But Test Helpers fails with it now with an error:

Error: Unknown named parameter $$configFactory

Will be good to implement this feature.

Feature request
Status

Active

Version

1.5

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024