Add missing Friendica\DI namespace to files (PHPStorm inspection)

This commit is contained in:
Philipp Holzer 2020-01-19 21:26:42 +01:00
parent 2204016071
commit 21640ec5d8
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
17 changed files with 18 additions and 2 deletions

View file

@ -11,6 +11,7 @@ use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\User;
use Friendica\Protocol\DFRN;

View file

@ -8,6 +8,7 @@ use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Util\DateTimeFormat;
function worker_init()

View file

@ -6,6 +6,7 @@ use Friendica\Api\BaseEntity;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;
/**
* Class Stats

View file

@ -7,6 +7,7 @@ namespace Friendica\Database;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Item;
use Friendica\Model\ItemURI;

View file

@ -10,6 +10,7 @@ use Friendica\Content\Text\HTML;
use Friendica\Core\Logger;
use Friendica\Core\Config;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Protocol\ActivityPub;
use Friendica\Util\Network;
use Friendica\Util\JsonLD;

View file

@ -12,6 +12,7 @@ use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Module\Register;
use Friendica\Network\CurlResult;
use Friendica\Util\Network;

View file

@ -7,6 +7,7 @@ use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Network\HTTPException;

View file

@ -12,6 +12,7 @@ namespace Friendica\Network;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Util\Strings;
use OAuthConsumer;
use OAuthDataStore;

View file

@ -18,6 +18,7 @@ use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\GServer;

View file

@ -10,6 +10,7 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\DI;
/**
* Crypto class

View file

@ -8,6 +8,7 @@ namespace Friendica\Util;
use Friendica\Database\DBA;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Model\User;
use Friendica\Model\APContact;

View file

@ -10,6 +10,7 @@ namespace Friendica\Worker;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Util\Network;
/**

View file

@ -10,6 +10,7 @@ use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
class DBClean {
public static function execute($stage = 0) {

View file

@ -11,6 +11,7 @@ use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Util\Network;
class Directory

View file

@ -9,6 +9,7 @@ use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\GContact;
use Friendica\Model\GServer;
use Friendica\Util\DateTimeFormat;

View file

@ -6,6 +6,7 @@ namespace Friendica\Worker;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Model\GContact;
use Friendica\Model\GServer;
use Friendica\Protocol\PortableContact;

View file

@ -21,8 +21,8 @@
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<?php
if(!empty($page['nav'])) {
echo str_replace("~config.sitename~",Friendica\Core\DI::config()->get('config','sitename'),
str_replace("~system.banner~",Friendica\Core\DI::config()->get('system','banner'),
echo str_replace("~config.sitename~",Friendica\DI::config()->get('config','sitename'),
str_replace("~system.banner~",Friendica\DI::config()->get('system','banner'),
$page['nav']
));};
?>