Problem/Motivation
Using this module with the contrib book module is generating this exception
TypeError: Drupal\book_pdfs\BookPdfsGenerator::__construct(): Argument #6 ($event_dispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\book_pdfs\BookPdfsGenerator->__construct() (line 100 of modules/contrib/book_pdfs/src/BookPdfsGenerator.php)
Steps to reproduce
- Install Book 2.0.1 on a Drupal 11 site.
- Create a book and child pages.
- Add the book_pdfs link to a page.
- Click the link.
- Exception is thrown.
Proposed resolution
TBD
Remaining tasks
TBD
Issue fork book_pdfs-3531560
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joseph.olstadAh ok, I haven't tested this yet with Drupal 11, please submit a patch or merge request, I'll review it.
Comment #3
dhruv.mittal commentedComment #5
dhruv.mittal commentedPlease review
Comment #7
joseph.olstadThanks!