From fcb901a6b00fe2cf2556c0307b78dd0a6dca5b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sun, 7 Jan 2018 17:38:35 +0100 Subject: [PATCH] Change deprecated/removed database query --- developer_manual/app/container.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer_manual/app/container.rst b/developer_manual/app/container.rst index 0fff10956..1c60691dd 100644 --- a/developer_manual/app/container.rst +++ b/developer_manual/app/container.rst @@ -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() ); });