Centralized Polymorphic Registry

Open
#5,266 0 comments 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
Needs clarification
Activity status
Active
Tech stack
php
Domain
backend

Research direction

Start by reading the issue and locating how extensions currently register models for polymorphic relationships; the payload does not name specific files or tests. Work out what a core registry should provide across extensions, then define its API and compatibility expectations. Done means extensions can share a core provided registry, with behavior and tests covering supported polymorphic models.

Written by the indexing model from the issue text.

Description

type/extensibility

Extensions which have a polymorphic architecture currently need to implement a kind of registry each time to keep track of which models are supported as a polymorphic relationship. To increase ecosystem compatibility and synergies, a core provided solution would be a great help here

Dominant language
PHP
Stars
6.8k
Forks
891
Avg merge
1d 10h
Merged PRs (30d)
209

Getting set up

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 flarum/framework

All issues in flarum/framework

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.