Skip to content

Add controller autowiring - #13

Merged
rtcoder merged 1 commit into
masterfrom
release/v0.10.0
Jun 17, 2026
Merged

Add controller autowiring#13
rtcoder merged 1 commit into
masterfrom
release/v0.10.0

Conversation

@rtcoder

@rtcoder rtcoder commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Create controllers through the service container instead of direct construction.
  • Add ServiceContainer::make() for typed constructor dependency autowiring.
  • Register the current request, router, and service container as default services by class name.
  • Add tests for controller constructor autowiring and container class construction with typed dependencies.
  • Update README, REFACTORING.md, and docs/index.html with the new container and controller behavior.

Validation

  • composer validate --strict --no-check-publish
  • composer dump-autoload
  • find Engine application tests -name '*.php' -print0 | xargs -0 -n1 php -l
  • composer test
  • php shift.php route:list
  • php shift.php health
  • HTTP smoke tests:
    • GET /health -> 200 application/json
    • GET /hello -> 404 application/json

Release

  • Version label: v0.10.0

@rtcoder rtcoder added the v0.10.0 Release v0.10.0 label Jun 16, 2026
@rtcoder
rtcoder merged commit 85402b5 into master Jun 17, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.10.0 Release v0.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant