Skip to content

[stable33] fix(dev): Correct errors in DI chapter code examples - #14707

Merged
skjnldsv merged 4 commits into
stable33from
backport/13840/stable33
May 1, 2026
Merged

skjnldsv merged 4 commits into
stable33from
backport/13840/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented May 1, 2026

Copy link
Copy Markdown

Backport of #13840

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

joshtrichards and others added 3 commits May 1, 2026 14:34
Couple code example errors fixed in DI chapter:

- `AuthorMappers` referenced when `AuthorMapper` was intended
- Class `APIController`, which is shown calling a parent class constructor, wasn't extending a class 

Also:

- Added a DI introduction section
- Added some new inline code comments

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
fix(developer): improve `dependency_injection` article

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Co-authored-by: Christian Wolf <github@christianwolf.email>

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>

[skip ci]
@skjnldsv

skjnldsv commented May 1, 2026

Copy link
Copy Markdown
Member

@copilot check the original PR and fix the backport

@skjnldsv
skjnldsv marked this pull request as ready for review May 1, 2026 14:41

Copilot AI commented May 1, 2026

Copy link
Copy Markdown
Contributor

@copilot check the original PR and fix the backport

Fixed in cb3723e. The backport was missing one fix from the original PR: in the "How the container works" section, the AuthorMapper registration example incorrectly had return new AuthorService( instead of return new AuthorMapper(. All other changes from #13840 were correctly applied.

@skjnldsv
skjnldsv enabled auto-merge May 1, 2026 14:49
@skjnldsv
skjnldsv merged commit 8f573b3 into stable33 May 1, 2026
15 checks passed
@skjnldsv
skjnldsv deleted the backport/13840/stable33 branch May 1, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants