Promote symfony/finder from dev-dependency to full dependency

Created on 23 June 2023, over 1 year ago
Updated 6 November 2023, about 1 year ago

Problem/Motivation

symfony/finder is currently a dev-dependency of Drupal core, which allows its use during the development of core, but not during actual site development. The component is not included in either the tarball or composer versions of Drupal

This issue aims to promote the dependency out of dev status, making those components available to parts of core Drupal developers may use in their projects.

Issues/Projects Impacted

πŸ“Œ Making a theme compatible with core's theme generator is too difficult Needs work aims to use symfony/finder to locate files using the starterkit theme's machine name or label in their filename or contents, rather than creating our own solution to recursively scan theme directories

The automatic updates initiative recently removed finder as a dependency in πŸ“Œ Remove dependency on symfony/finder Fixed , but @phenaproxima said they would surely use it if were a core dependency (slack link).

Background

In slack, @catch says:

The main thing with both is that they've got overlap, but not interchangeable, with subsystems we've already got in core, so ideally we'd identify where that overlap is and isn't, and what should and shouldn't be converted etc. - it doesn't need to be fully done but it'd be good to have a start considering the last time this was looked at was ten years ago for finder.

Also that's probably the only thing, the normal dependency evaluation stuff is covered by 'it's another Symfony component' so it's just making sure we know where the lines are between it and existing code. We have the same overlap issues with the translation component (which we've been careful to avoid dependencies on) and other code.

#1451320: Evaluate Symfony2's Finder Component to simplify file handling β†’ is 13 years old but would be somewhere to start.

If the answer is 'no we shouldn't use any of it', that's fine too but it should go in a change record or something.

Next Steps

  1. Need someone with PHP expertise evaluate symfony/finder β†’ for additional potential usage outside of its use for starterkit πŸ“Œ Making a theme compatible with core's theme generator is too difficult Needs work
  2. If there are no additional potential usages, we need to make sure that's reflected in the change record
πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
ComposerΒ  β†’

Last updated 4 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States andy-blum Ohio, USA

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

Comments & Activities

Production build 0.71.5 2024