Remove dependency on symfony/finder

Created on 16 November 2022, about 2 years ago
Updated 1 March 2023, almost 2 years ago

Problem/Motivation

Per @phenaproxima, we only use symfony/finder for convenience and symfony/config for autowiring:

adam.hoenich: My preference would actually be to remove the dependency on symfony/finder. We currently depend on it for convenience. With a little work I think we could refactor it out
wim.leers: ah!
adam.hoenich: And maybe even symfony/config too, if we can find a way to load in Composer Stager and its autowiring
wim.leers: is that what itโ€™s for?!
adam.hoenich: It is.
wim.leers: lol
wim.leers: okay
adam.hoenich: If you look at PackageManagerServiceProvider, itโ€™s the only way I could expose all those classes to the container. It needed things that exist in symfony/config

We should verify that we need these dependencies. A whole new dependency for Drupal core/AU is not worth it if it just saves a few LoC.

Steps to reproduce

Proposed resolution

  1. Remove dependency on symfony/finder
  2. Add symfony/config as a core dependency per #11: ๐Ÿ“Œ Add symfony/config to core's dependencies for package_manager Closed: duplicate

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

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