mirror of
https://github.com/friendica/friendica
synced 2025-03-02 21:08:25 +00:00
- New Configuration (Config is now only holding the instance) - New PConfiguration (PConfig is now only holding the instance) - Config & PConfig-Adapter don't need "ConfigCache" anymore - DB-Connection is now outside App->reload() for better dependency-chaining
21 lines
312 B
PHP
21 lines
312 B
PHP
<?php
|
|
|
|
namespace Friendica\Core\Config\Adapter;
|
|
|
|
use Friendica\Database\DBA;
|
|
|
|
abstract class AbstractDbaConfigAdapter
|
|
{
|
|
/** @var bool */
|
|
protected $connected = true;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->connected = DBA::connected();
|
|
}
|
|
|
|
public function isConnected()
|
|
{
|
|
return $this->connected;
|
|
}
|
|
}
|