Autowire everything everywhere all at once … in *Test.php files

Created on 15 March 2023, over 1 year ago
Updated 24 March 2023, over 1 year ago

Problem/Motivation

📌 Package Manager's services should use autowiring Fixed introduced autowiring for Package Manager's *.services.yml file. Great!

That also means we can start doing

$active_dir = $this->container->get(PathLocator::class)->getProjectRoot();

instead of

$active_dir = $this->container->get(''package_manager.path_locator')->getProjectRoot();

in tests.

⇒ more consistency, no more "magic strings", simpler refactoring 👍

Proposed resolution

  1. First do this for all of the package_manager.* and core services.
  2. Wait for 📌 Package Manager's services should use autowiring Fixed to finish.
  3. Continue doing this for all services then.

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

Production build 0.71.5 2024