Argument is missing on service file

Created on 15 May 2023, over 1 year ago

Problem/Motivation

while configure and save I observerd one argument is missing on service file.
Error

Steps to reproduce

save the configuration from /admin/config/system/nginx-proxy-manager-connector/settings
will get Error.
ArgumentCountError: Too few arguments to function Drupal\nginx_proxy_manager_connector\Services\NginxProxyManagerService::__construct(), 2 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 3 expected in Drupal\nginx_proxy_manager_connector\Services\NginxProxyManagerService->__construct() (line 46 of modules/contrib/nginx_proxy_manager_connector/src/Services/NginxProxyManagerService.php).

Proposed resolution

In service file we need to add @logger.factory
arguments: [ '@config.factory', '@http_client']
add '@logger.factory'
arguments: [ '@config.factory', '@http_client', '@logger.factory']

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Shiv_Sharma

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

Comments & Activities

Production build 0.71.5 2024