Automated Discovery of `PackageInstallationPlugin`

Open
#6,610 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
backend, devtools

Research direction

Start by reading the XML-PIP registration and package installation or uninstallation code to understand where PackageInstallationPlugin files are loaded and how their names are resolved. Then assess how discovery from the PIP directory could handle name collisions and caching. Done means plugins are discovered without app-directory registration, collisions are handled, and the approach works during both installation and uninstallation.

Written by the indexing model from the issue text.

Description

PIPs are manually registered through the XML-PIP but in practice are very limited. They must be placed in the core’s directory because any app directory is not necessarily available during the installation or uninstallation of a package. Furthermore their name must be unique because they are referenced by their name and not their full path.

This makes them an ideal candidate for an auto discovery by looking for files in the PIP directory:

  • Prevents the pitfall of registering it in an app’s directory.
  • Ensures uniqueness by more-or-less gracefully handling file collisions.
  • Easily cacheable and relatively static, one less table to deal with.
Dominant language
PHP
Stars
248
Forks
147
Avg merge
17m
Merged PRs (30d)
21

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from WoltLab/WCF

All issues in WoltLab/WCF

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.