Add singleton package documentation#9
Conversation
Documents the phpnomad/singleton package, which provides a trait for implementing the singleton design pattern. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35b5b920e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| ## Integration with dependency injection | ||
|
|
||
| The PHPNomad [DI container](/packages/di/introduction) can manage singleton instances while maintaining testability: |
There was a problem hiding this comment.
Fix internal links to non-existent package docs
This link points to /packages/di/introduction, but there is no corresponding public/docs/packages/di/introduction.md in the repository (same for /packages/enum-polyfill/…, /packages/logger/…, /packages/core/…, and /packages/facade/…), so those navigation entries will 404 in the rendered docs unless those pages are added or the links are updated to existing routes.
Useful? React with 👍 / 👎.
Documents the phpnomad/singleton package, which provides a trait for implementing the singleton design pattern.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com