friendica_2021.01_tupambae_.../src/Util
Roland Häder 4d39164c1e [WIP] Rewrite to Proxy class: (#5507)
* Rewrite to Proxy class:
- introduced new Friendica\Network\Proxy class for in exchange of proxy_*()
  functions
- moved also all PROXY_* constants there as Proxy::*
- removed now no longer needed mod/proxy.php loading as composer's auto-load
  will do this for us
- renamed those proxy_*() functions to better names:
  + proxy_init()           -> Proxy::init()         (public)
  + proxy_url()            -> Proxy::proxifyUrl()   (public)
  + proxy_parse_html()     -> Proxy::proxifyHtml()  (public)
  + proxy_is_local_image() -> Proxy::isLocalImage() (private)
  + proxy_parse_query()    -> Proxy::parseQuery()   (private)
  + proxy_img_cb()         -> Proxy::replaceUrl()   (private)

* Ops, need to set $a here ...

* CR request:
- moved Proxy class to Friendica\Module
- extended BaseModule

* Ops, no need for own instance of $a when self::getApp() is around.

* Proxy-rewrite:
- proxy_url() and proxy_parse_html() are both non-module functions (now
  methods)
- so they must be splitted into a seperate class
- also the SIZE_* and DEFAULT_TIME constants are both not relevant to module

* No instances from utility classes

* Fixed error:
- proxify*() is now located in `Friendica\Util\ProxyUtils`

* Moved back to original place, ops? How did they move here? Well, it was not
intended by me.

* Removed duplicate (left-over from split) constants and static array. Thank to
MrPetovan finding it.

* Renamed ProxyUtils -> Proxy and aliased it back to ProxyUtils.
2018-07-30 22:06:22 -04:00
..
Arrays.php Fixed E_NOTICE in listing worker queue and new utilities class added (#5521) 2018-07-30 21:24:26 -04:00
Crypto.php port hubzillas OpenWebAuth - fix wrong table name + fix wrong method name 2018-06-20 20:11:26 +02:00
DateTimeFormat.php Avoid "Failed to parse time string (-001-11-30T00:00:00+00:00 + 32 days)" 2018-04-04 18:58:25 +00:00
Emailer.php Update Emailer.php 2018-06-19 16:58:06 -04:00
ExAuth.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
HTTPHeaders.php port hubzillas OpenWebAuth - rework the HTTPHeaders class 2018-06-20 18:52:37 +02:00
HTTPSignature.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
Map.php Fix: Events on Diaspora now should look fine 2018-03-20 06:32:17 +00:00
Mimetype.php Function calls 2018-01-15 08:32:11 -05:00
Network.php Uncommon logger levels in Friendica (#5453) 2018-07-22 14:07:44 -04:00
ParseUrl.php Rename Friendica\Database\dba to Friendica\Database\DBA 2018-07-20 08:19:26 -04:00
Pidfile.php PHPStan: Fix missing requires/namespaces 2017-12-17 15:26:43 -05:00
Proxy.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
Temporal.php Fix self warning in Util\Temporal 2018-04-23 00:03:27 -04:00
XML.php Several more warnings ... (#5340) 2018-07-10 08:27:56 -04:00