xp-forge / xp-forge/inject

Shorthand for binding to the same type

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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.