Problem/Motivation
Hi, when decorating the date.formatter service, this module stops working because it expects a specific class in dependency injection.
Proposed resolution
Replace the DateFormatter class with the DateFormatterInterface interface in dependency injection.
Issue fork diff-3400477
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:
- 3400477-fix-di
changes, plain diff MR !34
Comments
Comment #3
kksandr commentedComment #4
davidmv97 commentedHello everyone, I have conducted tests with the module without applying the patch published by kksandr, and I cannot identify the issue associated with this case. After applying the patch, I also don't see any errors. However, I consider it important to determine how to reproduce the issue in order to know if the problem has been resolved.
Comment #5
kksandr commented@DavidMV97, you need to define a decorator for the date.formatter service, after which the module breaks in places where the date.formatter service was used, such as on the node revisions page.
For example:
Comment #7
kksandr commentedFixed in #3313385