mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
Refactoring Logging to use Configuration
This commit is contained in:
parent
eafcf3592d
commit
80f1feabe5
13 changed files with 141 additions and 146 deletions
|
@ -7,6 +7,14 @@ use Friendica\Database;
|
|||
|
||||
class DBFactory
|
||||
{
|
||||
/**
|
||||
* Initialize the DBA connection
|
||||
*
|
||||
* @param Cache\ConfigCache $configCache The configuration cache
|
||||
* @param array $server The $_SERVER variables
|
||||
*
|
||||
* @throws \Exception if connection went bad
|
||||
*/
|
||||
public static function init(Cache\ConfigCache $configCache, array $server)
|
||||
{
|
||||
if (Database\DBA::connected()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue