Shorthand for binding to the same type
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
...to be used inside Bindings implementations, e.g.:
// Repetitive
$inject->bind(Implementations<DataSource>::class, new Implementations<DataSource>(/* ... */));
// Maybe something like this?
$inject->instance(new Implementations<DataSource>(/* ... */));
This would be consistent with the UseBindings DSL, see #23
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Bindings implementations and the UseBindings DSL referenced in issue #23. Compare the existing bind syntax with the proposed instance shorthand and clarify the intended API behavior. Done means a consistent shorthand is defined and covered by the relevant binding behavior tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100