Browse Source

Move remaining namespaces and delete Core\Cache.php

pull/8072/head
nupplaPhil 1 year ago
parent
commit
a38b0f7eaf
No known key found for this signature in database GPG Key ID: D8365C3D36B77D90
21 changed files with 14 additions and 56 deletions
  1. +1
    -1
      mod/ping.php
  2. +0
    -2
      mod/poco.php
  3. +1
    -1
      src/Content/OEmbed.php
  4. +0
    -1
      src/Content/Text/BBCode.php
  5. +0
    -2
      src/Content/Widget/TrendingTags.php
  6. +0
    -33
      src/Core/Cache.php
  7. +1
    -1
      src/Core/Lock/DatabaseLock.php
  8. +1
    -0
      src/Core/Update.php
  9. +1
    -1
      src/Model/Photo.php
  10. +1
    -1
      src/Model/Profile.php
  11. +1
    -1
      src/Model/Term.php
  12. +0
    -3
      src/Module/Search/Index.php
  13. +1
    -1
      src/Network/Probe.php
  14. +1
    -1
      src/Protocol/ActivityPub/Transmitter.php
  15. +1
    -1
      src/Protocol/Diaspora.php
  16. +1
    -1
      src/Protocol/OStatus.php
  17. +0
    -1
      src/Util/Images.php
  18. +1
    -1
      src/Util/JsonLD.php
  19. +0
    -1
      src/Worker/CronJobs.php
  20. +1
    -1
      src/Worker/SearchDirectory.php
  21. +1
    -1
      tests/Util/DbaLockMockTrait.php

+ 1
- 1
mod/ping.php View File

@ -6,7 +6,7 @@
use Friendica\App;
use Friendica\Content\ForumManager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;


+ 0
- 2
mod/poco.php View File

@ -6,12 +6,10 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Protocol\PortableContact;


+ 1
- 1
src/Content/OEmbed.php View File

@ -10,7 +10,7 @@ use DOMNode;
use DOMText;
use DOMXPath;
use Exception;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;


+ 0
- 1
src/Content/Text/BBCode.php View File

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


+ 0
- 2
src/Content/Widget/TrendingTags.php View File

@ -2,10 +2,8 @@
namespace Friendica\Content\Widget;
use Friendica\Core\Cache;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Model\Term;
/**


+ 0
- 33
src/Core/Cache.php View File

@ -1,33 +0,0 @@
<?php
/**
* @file src/Core/Cache.php
*/
namespace Friendica\Core;
use Friendica\Core\Cache\Cache as CacheClass;
use Friendica\DI;
/**
* @brief Class for storing data for a short time
*/
class Cache
{
/** @deprecated Use CacheClass::MONTH */
const MONTH = CacheClass::MONTH;
/** @deprecated Use CacheClass::WEEK */
const WEEK = CacheClass::WEEK;
/** @deprecated Use CacheClass::DAY */
const DAY = CacheClass::DAY;
/** @deprecated Use CacheClass::HOUR */
const HOUR = CacheClass::HOUR;
/** @deprecated Use CacheClass::HALF_HOUR */
const HALF_HOUR = CacheClass::HALF_HOUR;
/** @deprecated Use CacheClass::QUARTER_HOUR */
const QUARTER_HOUR = CacheClass::QUARTER_HOUR;
/** @deprecated Use CacheClass::FIVE_MINUTES */
const FIVE_MINUTES = CacheClass::FIVE_MINUTES;
/** @deprecated Use CacheClass::MINUTE */
const MINUTE = CacheClass::MINUTE;
/** @deprecated Use CacheClass::INFINITE */
const INFINITE = CacheClass::INFINITE;
}

+ 1
- 1
src/Core/Lock/DatabaseLock.php View File

@ -2,7 +2,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Database\Database;
use Friendica\Util\DateTimeFormat;


+ 1
- 0
src/Core/Update.php View File

@ -6,6 +6,7 @@ use Friendica\App;
use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use Friendica\Util\Strings;
use Friendica\Core\Cache\Cache;
class Update
{


+ 1
- 1
src/Model/Photo.php View File

@ -6,7 +6,7 @@
*/
namespace Friendica\Model;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;


+ 1
- 1
src/Model/Profile.php View File

@ -10,7 +10,7 @@ use Friendica\Content\ForumManager;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Content\Widget\ContactBlock;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;


+ 1
- 1
src/Model/Term.php View File

@ -4,7 +4,7 @@
*/
namespace Friendica\Model;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;


+ 0
- 3
src/Module/Search/Index.php View File

@ -2,13 +2,10 @@
namespace Friendica\Module\Search;
use Friendica\App\Arguments;
use Friendica\App\BaseURL;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Content\Text\HTML;
use Friendica\Content\Widget;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache as CacheClass;
use Friendica\Core\Config;
use Friendica\Core\L10n;


+ 1
- 1
src/Network/Probe.php View File

@ -11,7 +11,7 @@ namespace Friendica\Network;
use DOMDocument;
use DomXPath;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;


+ 1
- 1
src/Protocol/ActivityPub/Transmitter.php View File

@ -7,7 +7,7 @@ namespace Friendica\Protocol\ActivityPub;
use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Plaintext;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;


+ 1
- 1
src/Protocol/Diaspora.php View File

@ -13,7 +13,7 @@ namespace Friendica\Protocol;
use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;


+ 1
- 1
src/Protocol/OStatus.php View File

@ -8,7 +8,7 @@ use DOMDocument;
use DOMXPath;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Lock;


+ 0
- 1
src/Util/Images.php View File

@ -2,7 +2,6 @@
namespace Friendica\Util;
use Friendica\Core\Cache;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\DI;


+ 1
- 1
src/Util/JsonLD.php View File

@ -4,7 +4,7 @@
*/
namespace Friendica\Util;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Logger;
use Exception;
use Friendica\DI;


+ 0
- 1
src/Worker/CronJobs.php View File

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


+ 1
- 1
src/Worker/SearchDirectory.php View File

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


+ 1
- 1
tests/Util/DbaLockMockTrait.php View File

@ -2,7 +2,7 @@
namespace Friendica\Test\Util;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Lock\DatabaseLock;
trait DbaLockMockTrait


Loading…
Cancel
Save