]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Proxy.php
Remove unused dependency
[friendica.git] / src / Util / Proxy.php
index 4feb0b680f27ddfcb1a03799d7ba9198a11a0fdd..6bc227591d3cc0ad001a0f1855b350cb1aabd618 100644 (file)
@@ -2,11 +2,10 @@
 
 namespace Friendica\Util;
 
-use Friendica\Core\Config;
 use Friendica\DI;
 
 /**
- * @brief Proxy utilities class
+ * Proxy utilities class
  */
 class Proxy
 {
@@ -39,14 +38,14 @@ class Proxy
        ];
 
        /**
-        * @brief Private constructor
+        * Private constructor
         */
        private function __construct () {
                // No instances from utilities classes
        }
 
        /**
-        * @brief Transform a remote URL into a local one.
+        * Transform a remote URL into a local one.
         *
         * This function only performs the URL replacement on http URL and if the
         * provided URL isn't local, "the isn't deactivated" (sic) and if the config
@@ -80,7 +79,7 @@ class Proxy
                }
 
                // Is the proxy disabled?
-               if (Config::get('system', 'proxy_disabled')) {
+               if (DI::config()->get('system', 'proxy_disabled')) {
                        return $url;
                }
 
@@ -128,7 +127,7 @@ class Proxy
        }
 
        /**
-        * @brief "Proxifies" HTML code's image tags
+        * "Proxifies" HTML code's image tags
         *
         * "Proxifies", means replaces image URLs in given HTML code with those from
         * proxy storage directory.
@@ -146,7 +145,7 @@ class Proxy
        }
 
        /**
-        * @brief Checks if the URL is a local URL.
+        * Checks if the URL is a local URL.
         *
         * @param string $url
         * @return boolean
@@ -170,7 +169,7 @@ class Proxy
        }
 
        /**
-        * @brief Return the array of query string parameters from a URL
+        * Return the array of query string parameters from a URL
         *
         * @param string $url URL to parse
         * @return array Associative array of query string parameters
@@ -186,7 +185,7 @@ class Proxy
        }
 
        /**
-        * @brief Call-back method to replace the UR
+        * Call-back method to replace the UR
         *
         * @param array $matches Matches from preg_replace_callback()
         * @return string Proxified HTML image tag