mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Change deprecated/removed database query
This commit is contained in:
committed by
GitHub
parent
f13ea01460
commit
5db1080c3c
@@ -109,7 +109,7 @@ To add the app's classes simply open the :file:`lib/AppInfo/Application.php` and
|
||||
*/
|
||||
$container->registerService('AuthorMapper', function($c){
|
||||
return new AuthorMapper(
|
||||
$c->query('ServerContainer')->getDb()
|
||||
$c->query('ServerContainer')->getDatabaseConnection()
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -143,7 +143,7 @@ The container works in the following way:
|
||||
|
||||
$container->registerService('AuthorMappers', function($c){
|
||||
return new AuthorService(
|
||||
$c->query('ServerContainer')->getDb()
|
||||
$c->query('ServerContainer')->getDatabaseConnection()
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user