Type coupling a dependency in DynamicLocalTasks class

Created on 11 November 2020, about 4 years ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

The 'DynamicLocalTasks' class is type coupling a dependency 'TranslationManager' instead of using an interface.
This leads to problems once other modules that implement the decoration pattern are used.

Steps to reproduce

Install the modules below:
- entity_clone
- symfony_validator_translator

An error will be thrown either after installing the module or when the cache is cleared.

Proposed resolution

Use an abstract class preferably an interface when injecting dependencies.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands bonrita

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India rajeshreeputra Pune

    The issue is being closed as it does not appear to relate to a problem with the Entity Clone module. Please feel free to create a new one if the problem persists.

Production build 0.71.5 2024