Browse Source

Remove unneeded Config namespace usages

pull/8142/head
nupplaPhil 2 years ago
parent
commit
ed9392469e
No known key found for this signature in database GPG Key ID: D8365C3D36B77D90
  1. 1
      bin/daemon.php
  2. 1
      bin/worker.php
  3. 1
      boot.php
  4. 1
      include/api.php
  5. 1
      include/conversation.php
  6. 1
      include/enotify.php
  7. 1
      include/items.php
  8. 1
      mod/api.php
  9. 1
      mod/cal.php
  10. 1
      mod/community.php
  11. 1
      mod/crepair.php
  12. 1
      mod/dfrn_confirm.php
  13. 1
      mod/dfrn_notify.php
  14. 1
      mod/dfrn_poll.php
  15. 1
      mod/dfrn_request.php
  16. 1
      mod/display.php
  17. 1
      mod/follow.php
  18. 1
      mod/item.php
  19. 1
      mod/lostpass.php
  20. 1
      mod/match.php
  21. 1
      mod/network.php
  22. 1
      mod/photos.php
  23. 1
      mod/ping.php
  24. 1
      mod/poco.php
  25. 1
      mod/profile_photo.php
  26. 1
      mod/profiles.php
  27. 1
      mod/profperm.php
  28. 1
      mod/pubsubhubbub.php
  29. 1
      mod/regmod.php
  30. 1
      mod/removeme.php
  31. 1
      mod/settings.php
  32. 1
      mod/uimport.php
  33. 1
      mod/videos.php
  34. 1
      mod/wall_attach.php
  35. 1
      mod/wall_upload.php
  36. 1
      mod/worker.php
  37. 1
      src/Api/Entity/Mastodon/Instance.php
  38. 1
      src/Api/Entity/Mastodon/Stats.php
  39. 46
      src/Console/AutomaticInstallation.php
  40. 1
      src/Content/Feature.php
  41. 1
      src/Content/Nav.php
  42. 1
      src/Content/OEmbed.php
  43. 1
      src/Content/Smilies.php
  44. 1
      src/Content/Text/BBCode.php
  45. 1
      src/Content/Text/HTML.php
  46. 1
      src/Content/Widget.php
  47. 1
      src/Database/DBStructure.php
  48. 1
      src/Database/PostUpdate.php
  49. 3
      src/Factory/ConfigFactory.php
  50. 1
      src/Model/APContact.php
  51. 1
      src/Model/Contact.php
  52. 1
      src/Model/GContact.php
  53. 1
      src/Model/GServer.php
  54. 1
      src/Model/Item.php
  55. 1
      src/Model/Photo.php
  56. 1
      src/Model/Profile.php
  57. 1
      src/Model/User.php
  58. 1
      src/Module/Admin/Blocklist/Server.php
  59. 1
      src/Module/Admin/DBSync.php
  60. 1
      src/Module/Admin/Features.php
  61. 1
      src/Module/Admin/Federation.php
  62. 1
      src/Module/Admin/Logs/Settings.php
  63. 1
      src/Module/Admin/Logs/View.php
  64. 1
      src/Module/Admin/Site.php
  65. 4
      src/Module/Admin/Summary.php
  66. 1
      src/Module/Admin/Themes/Index.php
  67. 1
      src/Module/Admin/Tos.php
  68. 1
      src/Module/Admin/Users.php
  69. 1
      src/Module/Apps.php
  70. 1
      src/Module/Contact/Hovercard.php
  71. 1
      src/Module/Group.php
  72. 2
      src/Module/Inbox.php
  73. 1
      src/Module/Profile.php
  74. 1
      src/Module/Profile/Contacts.php
  75. 1
      src/Module/Register.php
  76. 1
      src/Module/Search/Index.php
  77. 1
      src/Module/Security/Login.php
  78. 1
      src/Module/Tos.php
  79. 1
      src/Network/FKOAuthDataStore.php
  80. 1
      src/Network/Probe.php
  81. 1
      src/Object/Image.php
  82. 1
      src/Object/Post.php
  83. 1
      src/Protocol/ActivityPub/Processor.php
  84. 1
      src/Protocol/ActivityPub/Transmitter.php
  85. 1
      src/Protocol/DFRN.php
  86. 1
      src/Protocol/Diaspora.php
  87. 1
      src/Protocol/OStatus.php
  88. 8
      src/Protocol/PortableContact.php
  89. 1
      src/Util/Crypto.php
  90. 1
      src/Util/Emailer.php
  91. 1
      src/Util/ExAuth.php
  92. 1
      src/Util/HTTPSignature.php
  93. 1
      src/Util/Network.php
  94. 1
      src/Util/Proxy.php
  95. 1
      src/Worker/CheckVersion.php
  96. 1
      src/Worker/Cron.php
  97. 2
      src/Worker/CronJobs.php
  98. 1
      src/Worker/DBClean.php
  99. 1
      src/Worker/DBUpdate.php
  100. 1
      src/Worker/Delivery.php

1
bin/daemon.php

@ -8,7 +8,6 @@
*/
use Dice\Dice;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

1
bin/worker.php

@ -7,7 +7,6 @@
use Dice\Dice;
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Update;
use Friendica\Core\Worker;
use Friendica\DI;

1
boot.php

@ -17,7 +17,6 @@
* easily as email does today.
*/
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\DBA;

1
include/api.php

@ -11,7 +11,6 @@ use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
include/conversation.php

@ -8,7 +8,6 @@ use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Content\Pager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
include/enotify.php

@ -4,7 +4,6 @@
*/
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;

1
include/items.php

@ -3,7 +3,6 @@
* @file include/items.php
*/
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
mod/api.php

@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/cal.php

@ -11,7 +11,6 @@ use Friendica\App;
use Friendica\Content\Feature;
use Friendica\Content\Nav;
use Friendica\Content\Widget;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

1
mod/community.php

@ -9,7 +9,6 @@ use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Content\Widget\TrendingTags;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

1
mod/crepair.php

@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

1
mod/dfrn_confirm.php

@ -19,7 +19,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

1
mod/dfrn_notify.php

@ -7,7 +7,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;

1
mod/dfrn_poll.php

@ -5,7 +5,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Core\Session;

1
mod/dfrn_request.php

@ -13,7 +13,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

1
mod/display.php

@ -8,7 +8,6 @@ use Friendica\Content\Pager;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

1
mod/follow.php

@ -3,7 +3,6 @@
* @file mod/follow.php
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\DI;

1
mod/item.php

@ -19,7 +19,6 @@ use Friendica\App;
use Friendica\Content\Pager;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
mod/lostpass.php

@ -5,7 +5,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/match.php

@ -5,7 +5,6 @@
use Friendica\App;
use Friendica\Content\Widget;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Search;
use Friendica\Database\DBA;

1
mod/network.php

@ -12,7 +12,6 @@ use Friendica\Content\Pager;
use Friendica\Content\Widget;
use Friendica\Content\Text\HTML;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
mod/photos.php

@ -9,7 +9,6 @@ use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;

1
mod/ping.php

@ -7,7 +7,6 @@ use Friendica\App;
use Friendica\Content\ForumManager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/poco.php

@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

1
mod/profile_photo.php

@ -5,7 +5,6 @@
use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

1
mod/profiles.php

@ -8,7 +8,6 @@ use Friendica\BaseModule;
use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Content\Nav;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;

1
mod/profperm.php

@ -3,7 +3,6 @@
* @file mod/profperm.php
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Content\Text\HTML;
use Friendica\Database\DBA;

1
mod/pubsubhubbub.php

@ -1,7 +1,6 @@
<?php
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/regmod.php

@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/removeme.php

@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/settings.php

@ -8,7 +8,6 @@ use Friendica\BaseModule;
use Friendica\Content\Feature;
use Friendica\Content\Nav;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;

1
mod/uimport.php

@ -5,7 +5,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\UserImport;
use Friendica\Core\Renderer;

1
mod/videos.php

@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

1
mod/wall_attach.php

@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\DI;

1
mod/wall_upload.php

@ -9,7 +9,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Session;
use Friendica\Database\DBA;

1
mod/worker.php

@ -4,7 +4,6 @@
* Module for running the worker as frontend process
*/
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

1
src/Api/Entity/Mastodon/Instance.php

@ -3,7 +3,6 @@
namespace Friendica\Api\Entity\Mastodon;
use Friendica\Api\BaseEntity;
use Friendica\Core\Config;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\User;

1
src/Api/Entity/Mastodon/Stats.php

@ -3,7 +3,6 @@
namespace Friendica\Api\Entity\Mastodon;
use Friendica\Api\BaseEntity;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;

46
src/Console/AutomaticInstallation.php

@ -5,7 +5,8 @@ namespace Friendica\Console;
use Asika\SimpleConsole\Console;
use Friendica\App;
use Friendica\App\BaseURL;
use Friendica\Core\Config;
use Friendica\Core\Config\IConfig;
use Friendica\Core\Config\Cache;
use Friendica\Core\Installer;
use Friendica\Core\Theme;
use Friendica\Database\Database;
@ -15,23 +16,13 @@ use RuntimeException;
class AutomaticInstallation extends Console
{
/**
* @var App\Mode
*/
/** @var App\Mode */
private $appMode;
/**
* @var \Friendica\Core\Config\Cache
*/
/** @var Cache */
private $configCache;
/**
* @var Config\IConfig
*/
/** @var IConfig */
private $config;
/**
* @var Database
*/
/** @var Database */
private $dba;
protected function getHelp()
@ -89,14 +80,14 @@ Examples
HELP;
}
public function __construct(App\Mode $appMode, Config\Cache $configCache, Config\IConfig $config, Database $dba, array $argv = null)
public function __construct(App\Mode $appMode, Cache $configCache, IConfig $config, Database $dba, array $argv = null)
{
parent::__construct($argv);
$this->appMode = $appMode;
$this->configCache =$configCache;
$this->config = $config;
$this->dba = $dba;
$this->appMode = $appMode;
$this->configCache = $configCache;
$this->config = $config;
$this->dba = $dba;
}
protected function doExecute()
@ -106,9 +97,9 @@ HELP;
$installer = new Installer();
$configCache = $this->configCache;
$configCache = $this->configCache;
$basePathConf = $configCache->get('system', 'basepath');
$basepath = new BasePath($basePathConf);
$basepath = new BasePath($basePathConf);
$installer->setUpCache($configCache, $basepath->getPath());
$this->out(" Complete!\n\n");
@ -241,18 +232,18 @@ HELP;
}
/**
* @param Installer $installer The Installer instance
* @param \Friendica\Core\Config\Cache $configCache The config cache
* @param Installer $installer The Installer instance
* @param Cache $configCache The config cache
*
* @return bool true if checks were successfully, otherwise false
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private function runBasicChecks(Installer $installer, Config\Cache $configCache)
private function runBasicChecks(Installer $installer, Cache $configCache)
{
$checked = true;
$installer->resetChecks();
if (!$installer->checkFunctions()) {
if (!$installer->checkFunctions()) {
$checked = false;
}
if (!$installer->checkImagick()) {
@ -281,11 +272,12 @@ HELP;
/**
* @param array $results
*
* @return string
*/
private function extractErrors($results)
{
$errorMessage = '';
$errorMessage = '';
$allChecksRequired = $this->getOption('a') !== null;
foreach ($results as $result) {

1
src/Content/Feature.php

@ -5,7 +5,6 @@
*/
namespace Friendica\Content;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\DI;

1
src/Content/Nav.php

@ -5,7 +5,6 @@
namespace Friendica\Content;
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

1
src/Content/OEmbed.php

@ -11,7 +11,6 @@ use DOMText;
use DOMXPath;
use Exception;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

1
src/Content/Smilies.php

@ -14,7 +14,6 @@
*/
namespace Friendica\Content;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\DI;
use Friendica\Util\Strings;

1
src/Content/Text/BBCode.php

@ -10,7 +10,6 @@ use DOMXPath;
use Exception;
use Friendica\Content\OEmbed;
use Friendica\Content\Smilies;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Content/Text/HTML.php

@ -9,7 +9,6 @@ use DOMDocument;
use DOMXPath;
use Friendica\Content\Widget\ContactBlock;
use Friendica\Core\Hook;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\Contact;

1
src/Content/Widget.php

@ -5,7 +5,6 @@
namespace Friendica\Content;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

1
src/Database/DBStructure.php

@ -6,7 +6,6 @@
namespace Friendica\Database;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\DI;

1
src/Database/PostUpdate.php

@ -4,7 +4,6 @@
*/
namespace Friendica\Database;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\DI;

3
src/Factory/ConfigFactory.php

@ -2,6 +2,7 @@
namespace Friendica\Factory;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\Config\Cache;
use Friendica\Model\Config\Config as ConfigModel;
@ -14,6 +15,8 @@ class ConfigFactory
* @param ConfigFileLoader $loader The Config Cache loader (INI/config/.htconfig)
*
* @return Cache
*
* @throws Exception
*/
public function createCache(ConfigFileLoader $loader)
{

1
src/Model/APContact.php

@ -8,7 +8,6 @@ namespace Friendica\Model;
use Friendica\Content\Text\HTML;
use Friendica\Core\Logger;
use Friendica\Core\Config;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Protocol\ActivityPub;

1
src/Model/Contact.php

@ -6,7 +6,6 @@ namespace Friendica\Model;
use Friendica\App\BaseURL;
use Friendica\Content\Pager;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Model/GContact.php

@ -8,7 +8,6 @@ namespace Friendica\Model;
use DOMDocument;
use DOMXPath;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

1
src/Model/GServer.php

@ -8,7 +8,6 @@ namespace Friendica\Model;
use DOMDocument;
use DOMXPath;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

1
src/Model/Item.php

@ -8,7 +8,6 @@ namespace Friendica\Model;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Model/Photo.php

@ -7,7 +7,6 @@
namespace Friendica\Model;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;

1
src/Model/Profile.php

@ -11,7 +11,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Content\Widget\ContactBlock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Model/User.php

@ -9,7 +9,6 @@ namespace Friendica\Model;
use DivineOmega\PasswordExposed;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Module/Admin/Blocklist/Server.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin\Blocklist;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

1
src/Module/Admin/DBSync.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Update;
use Friendica\Database\DBA;

1
src/Module/Admin/Features.php

@ -3,7 +3,6 @@
namespace Friendica\Module\Admin;
use Friendica\Content\Feature;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

1
src/Module/Admin/Federation.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
src/Module/Admin/Logs/Settings.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin\Logs;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

1
src/Module/Admin/Logs/View.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin\Logs;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

1
src/Module/Admin/Site.php

@ -3,7 +3,6 @@
namespace Friendica\Module\Admin;
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Search;
use Friendica\Core\Theme;

4
src/Module/Admin/Summary.php

@ -3,7 +3,7 @@
namespace Friendica\Module\Admin;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Config\Cache;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Update;
@ -110,7 +110,7 @@ class Summary extends BaseAdminModule
// check legacy basepath settings
$configLoader = new ConfigFileLoader($a->getBasePath());
$configCache = new Config\Cache();
$configCache = new Cache();
$configLoader->setupCache($configCache);
$confBasepath = $configCache->get('system', 'basepath');
$currBasepath = DI::config()->get('system', 'basepath');

1
src/Module/Admin/Themes/Index.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin\Themes;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Theme;
use Friendica\DI;

1
src/Module/Admin/Tos.php

@ -2,7 +2,6 @@
namespace Friendica\Module\Admin;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

1
src/Module/Admin/Users.php

@ -3,7 +3,6 @@
namespace Friendica\Module\Admin;
use Friendica\Content\Pager;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
src/Module/Apps.php

@ -4,7 +4,6 @@ namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Content\Nav;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;

1
src/Module/Contact/Hovercard.php

@ -3,7 +3,6 @@
namespace Friendica\Module\Contact;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

1
src/Module/Group.php

@ -6,7 +6,6 @@
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;

2
src/Module/Inbox.php

@ -6,9 +6,7 @@
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Protocol\ActivityPub;

1
src/Module/Profile.php

@ -7,7 +7,6 @@ use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Content\Widget;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Session;
use Friendica\Core\System;

1
src/Module/Profile/Contacts.php

@ -6,7 +6,6 @@ use Friendica\BaseModule;
use Friendica\Content\ContactSelector;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

1
src/Module/Register.php

@ -4,7 +4,6 @@ namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;

1
src/Module/Search/Index.php

@ -7,7 +7,6 @@ use Friendica\Content\Pager;
use Friendica\Content\Text\HTML;
use Friendica\Content\Widget;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

1
src/Module/Security/Login.php

@ -7,7 +7,6 @@
namespace Friendica\Module\Security;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

1
src/Module/Tos.php

@ -9,7 +9,6 @@
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\Content\Text\BBCode;
use Friendica\DI;

1
src/Network/FKOAuthDataStore.php

@ -9,7 +9,6 @@
namespace Friendica\Network;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;

1
src/Network/Probe.php

@ -12,7 +12,6 @@ namespace Friendica\Network;
use DOMDocument;
use DomXPath;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

1
src/Object/Image.php

@ -6,7 +6,6 @@
namespace Friendica\Object;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Util\Images;

1
src/Object/Post.php

@ -7,7 +7,6 @@ namespace Friendica\Object;
use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Protocol/ActivityPub/Processor.php

@ -6,7 +6,6 @@ namespace Friendica\Protocol\ActivityPub;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

1
src/Protocol/ActivityPub/Transmitter.php

@ -8,7 +8,6 @@ use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Plaintext;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

1
src/Protocol/DFRN.php

@ -14,7 +14,6 @@ use Friendica\App\BaseURL;
use Friendica\Content\OEmbed;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

1
src/Protocol/Diaspora.php

@ -14,7 +14,6 @@ use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

1
src/Protocol/OStatus.php

@ -9,7 +9,6 @@ use DOMXPath;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

8
src/Protocol/PortableContact.php

@ -9,26 +9,18 @@
namespace Friendica\Protocol;
use DOMDocument;
use DOMXPath;
use Exception;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
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;
use Friendica\Model\Profile;
use Friendica\Module\Register;
use Friendica\Network\Probe;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\XML;
class PortableContact
{

1
src/Util/Crypto.php

@ -6,7 +6,6 @@ namespace Friendica\Util;
use ASN_BASE;
use ASNValue;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\System;

1
src/Util/Emailer.php

@ -4,7 +4,6 @@
*/
namespace Friendica\Util;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\DI;

1
src/Util/ExAuth.php

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

1
src/Util/HTTPSignature.php

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

1
src/Util/Network.php

@ -6,7 +6,6 @@ namespace Friendica\Util;
use DOMDocument;
use DomXPath;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\System;

1
src/Util/Proxy.php

@ -2,7 +2,6 @@
namespace Friendica\Util;
use Friendica\Core\Config;
use Friendica\DI;
/**

1
src/Worker/CheckVersion.php

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

1
src/Worker/Cron.php

@ -5,7 +5,6 @@
namespace Friendica\Worker;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

2
src/Worker/CronJobs.php

@ -5,10 +5,8 @@
namespace Friendica\Worker;
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\StorageManager;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\Database\PostUpdate;

1
src/Worker/DBClean.php

@ -6,7 +6,6 @@
namespace Friendica\Worker;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

1
src/Worker/DBUpdate.php

@ -5,7 +5,6 @@
*/
namespace Friendica\Worker;
use Friendica\Core\Config;
use Friendica\Core\Update;
use Friendica\DI;

1
src/Worker/Delivery.php

@ -4,7 +4,6 @@
*/
namespace Friendica\Worker;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save