]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Images.php
formating
[friendica.git] / src / Util / Images.php
index c69c944c0e9dca1f65461fdaf735ce16639f1a47..e5a4da5b1953304cb75ffe1b296d4d87c580effd 100644 (file)
@@ -2,10 +2,9 @@
 
 namespace Friendica\Util;
 
-use Friendica\BaseObject;
-use Friendica\Core\Cache;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
+use Friendica\DI;
 use Imagick;
 
 /**
@@ -125,12 +124,12 @@ class Images
                        return $data;
                }
 
-               $data = Cache::get($url);
+               $data = DI::cache()->get($url);
 
                if (empty($data) || !is_array($data)) {
                        $data = self::getInfoFromURL($url);
 
-                       Cache::set($url, $data);
+                       DI::cache()->set($url, $data);
                }
 
                return $data;
@@ -165,7 +164,7 @@ class Images
 
                                $stamp1 = microtime(true);
                                file_put_contents($tempfile, $img_str);
-                               BaseObject::getApp()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack());
+                               DI::profiler()->saveTimestamp($stamp1, "file", System::callstack());
 
                                $data = getimagesize($tempfile);
                                unlink($tempfile);