mirror of
https://github.com/friendica/friendica
synced 2025-05-06 20:24:11 +02:00
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class
This commit is contained in:
parent
a9220aa83b
commit
1de3f186d7
132 changed files with 377 additions and 270 deletions
|
@ -6,6 +6,7 @@ use Friendica\BaseObject;
|
|||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Imagick;
|
||||
|
||||
/**
|
||||
|
@ -165,7 +166,7 @@ class Images
|
|||
|
||||
$stamp1 = microtime(true);
|
||||
file_put_contents($tempfile, $img_str);
|
||||
BaseObject::getApp()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack());
|
||||
DI::app()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack());
|
||||
|
||||
$data = getimagesize($tempfile);
|
||||
unlink($tempfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue