Too few arguments to function ResponseSubscriber::__construct

Created on 13 February 2023, almost 2 years ago

Problem/Motivation

ArgumentCountError: Too few arguments to function Drupal\json_api_book\EventSubscriber\ResponseSubscriber::__construct(), 1 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 2 expected in Drupal\json_api_book\EventSubscriber\ResponseSubscriber->__construct() (line 72 of modules/contrib/json_api_book/src/EventSubscriber/ResponseSubscriber.php).

Steps to reproduce

Call any Drupal page.

Proposed resolution

Add argument entity_type.manager in json_api_book.services.yml.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇭Switzerland boromino

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

Comments & Activities

Production build 0.71.5 2024