Apply dependency injection on LibraryDefinitionsStream.php

Created on 4 January 2022, over 2 years ago
Updated 22 March 2023, over 1 year 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.69.0 2024