Respect / Respect/Parameter

Roadmap for 4.0

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
0
Forks
1
Avg merge
3d 3h
Merged PRs (30d)
6

Description

I've been keeping a wishlist of ideas that might appear in the following version:

  • Extract Respect\Parameter\Reflector from ContainerResolver - a leftover from the interface migration that puts reflectCallable and acceptsType into a final abstract utils-like class called Reflector.
  • Fail on unresolved parameters (by throwing an CannotResolveParameterException). That would unlock stackable resolvers (try one, then try the next, and so on).
  • StackedResolver - meta-class for stacking Resolver.php implementations (assuming they throw).
  • Split behaviors of the current resolver into stackable components the users can choose from (position, pull from container, infer by type, variadic fill, etc). Instead of a long procedure, the mechanism would be OOP-stack based.

These changes would promote a clearer API, be very small, and enable foreign implementors to add their own layering (which is impractical today, like caching and exotic specific resolvers).

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reading Resolver.php and the current ContainerResolver implementation, then trace how reflectCallable, acceptsType, and parameter resolution are used. The roadmap mentions extracting Reflector, adding CannotResolveParameterException and StackedResolver, and splitting resolver behaviors, but it does not define a single acceptance target; completion would require an agreed design and scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.