mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Change deprecated/removed database query
This commit is contained in:
parent
5aeabaae90
commit
fcb901a6b0
@ -105,7 +105,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()
|
||||
);
|
||||
});
|
||||
}
|
||||
@ -139,7 +139,7 @@ The container works in the following way:
|
||||
|
||||
$container->registerService('AuthorMappers', function($c){
|
||||
return new AuthorService(
|
||||
$c->query('ServerContainer')->getDb()
|
||||
$c->query('ServerContainer')->getDatabaseConnection()
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user