Problem/Motivation
In #3567618: Create service for image_path_flush, image_style_options and constant for IMAGE_DERIVATIVE_TOKEN I noticed a bunch of formatters directly inject the storage or set it in the constructor.
This can result in a stale reference to the storage object.
Also remove the create method where possible.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3575042
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
nicxvan commentedComment #3
claudiu.cristeaSee also #3162827: Do not instantiate entity storages in constructors of services that do not always need them
Comment #4
amateescu commentedBlocker is in.