]> git.mxchange.org Git - friendica-addons.git/commitdiff
Refactor dynamic App::getProfiler() to static DI::profiler()
authornupplaPhil <admin@philipp.info>
Sun, 15 Dec 2019 22:50:35 +0000 (23:50 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 27 Dec 2019 20:55:16 +0000 (21:55 +0100)
rendertime/rendertime.php

index a54fc489d3442cad2d92c08537bd7953a759d51d..2ed7ee40b0d6e795ff5c963126358338bc2c700b 100644 (file)
@@ -9,6 +9,7 @@
 
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
+use Friendica\DI;
 
 function rendertime_install() {
        Hook::register('page_end', 'addon/rendertime/rendertime.php', 'rendertime_page_end');
@@ -30,7 +31,7 @@ function rendertime_init_1(&$a) {
 function rendertime_page_end(Friendica\App $a, &$o)
 {
 
-       $profiler = $a->getProfiler();
+       $profiler = DI::profiler();
 
        $duration = microtime(true) - $profiler->get('start');