Fix subclassing and stop overriding constructors

Created on 4 January 2023, almost 2 years ago
Updated 19 January 2023, almost 2 years ago

Problem/Motivation

Add object that implements FactoryInterface or ContainerFactoryPluginInterface should have dependencies injected via ::create and not ::__construct(). This allows parent classes to change their constructor without breaking any code.

See

Proposed resolution

Fix subclassing and stop overriding constructors.

Remaining tasks

  • Remove __construct() implementations from plugins
📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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.

No activities found.

Production build 0.71.5 2024