Skip to content

Commit cb3723e

Browse files
Copilotskjnldsv
andauthored
fix(dev): correct AuthorMapper registration example (return new AuthorMapper)
Agent-Logs-Url: https://github.com/nextcloud/documentation/sessions/1c4f547a-dfc0-437f-8427-722e03179f75 Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
1 parent 6b18f34 commit cb3723e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

developer_manual/basics/dependency_injection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ The container works in the following way:
280280
* **AuthorMapper** is queried::
281281

282282
$container->registerService(AuthorMapper::class, function(ContainerInterface $c): AuthorMapper {
283-
return new AuthorService(
283+
return new AuthorMapper(
284284
$c->get(IDBConnection::class)
285285
);
286286
});

0 commit comments

Comments
 (0)