Apply dependency injection on LibraryDefinitionsStream.php

Created on 4 January 2022, about 3 years ago
Updated 22 March 2023, almost 2 years ago

Problem/Motivation

I saw a @todo tag on the LibraryDefinitionsStream class to make dependency injection.

Steps to reproduce

Simply check line 46 on /libraries/src/StreamWrapper/LibraryDefinitionsStream.php

Proposed resolution

Use the "create" function and the other necessary elements to follow Drupal pattern of dependency injection
https://www.hashbangcode.com/article/drupal-9-introduction-services-and-...
https://drupalize.me/topic/dependency-injection

Remaining tasks

Review patch

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇷Brazil andregp

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.

Production build 0.71.5 2024