mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:44:23 +02:00
Update use statement lists with new Friendica\Database\dba class
- Remove unused use statement - Remove superfluous use statements (classes in the same namespace) - Add missing use statements
This commit is contained in:
parent
c316c5ae30
commit
daa1177e3a
128 changed files with 262 additions and 259 deletions
|
@ -3,7 +3,9 @@
|
|||
namespace Friendica\Core\Console;
|
||||
|
||||
use Friendica\Core;
|
||||
use Friendica\Database\dba;
|
||||
use Friendica\Database\DBStructure;
|
||||
use RuntimeException;
|
||||
|
||||
require_once 'boot.php';
|
||||
require_once 'include/dba.php';
|
||||
|
@ -56,8 +58,8 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
if (!\dba::connected()) {
|
||||
throw new \RuntimeException('Unable to connect to database');
|
||||
if (!dba::connected()) {
|
||||
throw new RuntimeException('Unable to connect to database');
|
||||
}
|
||||
|
||||
Core\Config::load();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue