mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
feat: update php docs
This commit is contained in:
parent
58d8b7e148
commit
4f720c30dd
1 changed files with 26 additions and 26 deletions
|
|
@ -16,8 +16,8 @@ use Utopia\Database\Adapter\MariaDB;
|
||||||
use Utopia\Database\Validator\Authorization;
|
use Utopia\Database\Validator\Authorization;
|
||||||
use Utopia\Cache\Adapter\Redis as RedisCache;
|
use Utopia\Cache\Adapter\Redis as RedisCache;
|
||||||
|
|
||||||
class DatabasePool {
|
class DatabasePool
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*
|
*
|
||||||
|
|
@ -48,11 +48,11 @@ class DatabasePool {
|
||||||
*/
|
*/
|
||||||
public function __construct(array $consoleDB, array $projectDB)
|
public function __construct(array $consoleDB, array $projectDB)
|
||||||
{
|
{
|
||||||
if(count($consoleDB) != 1) {
|
if (count($consoleDB) != 1) {
|
||||||
throw new Exception('Console DB should contain only one entry', 500);
|
throw new Exception('Console DB should contain only one entry', 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($projectDB)) {
|
if (empty($projectDB)) {
|
||||||
throw new Exception('Project DB is not defined', 500);
|
throw new Exception('Project DB is not defined', 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue