Skip to content

Document when to use service providers#432

Merged
samdark merged 3 commits intomasterfrom
54-provider-guidance
May 6, 2026
Merged

Document when to use service providers#432
samdark merged 3 commits intomasterfrom
54-provider-guidance

Conversation

@samdark
Copy link
Copy Markdown
Member

@samdark samdark commented May 5, 2026

Closes #54

Copilot AI review requested due to automatic review settings May 5, 2026 17:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Yii3 configuration guide to answer issue #54 by explaining when to use DI service providers versus direct container definitions in the definitive guide.

Changes:

  • Rewrites the introduction to the “Service providers” section.
  • Adds guidance for preferring direct container configuration for simple service definitions.
  • Adds a short comparison between service providers and factories.

Comment thread src/guide/concept/configuration.md Outdated
@samdark samdark merged commit 1b42ef4 into master May 6, 2026
6 of 7 checks passed
@samdark samdark deleted the 54-provider-guidance branch May 6, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document on when to create DI service provider

2 participants