Too few arguments to function ResponseSubscriber::__construct

Created on 13 February 2023, over 1 year 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.69.0 2024