]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/SessionFactory.php
Fix HTTPClient
[friendica.git] / src / Factory / SessionFactory.php
index 6534359e893c617dc4b427a0b717903f16f94793..f4d2dd89fd7feb0350238b0ecb8116cd9aed3b9e 100644 (file)
@@ -58,7 +58,7 @@ class SessionFactory
         */
        public function createSession(App\Mode $mode, App\BaseURL $baseURL, IConfig $config, Database $dba, ICache $cache, LoggerInterface $logger, Profiler $profiler, array $server = [])
        {
-               $stamp1  = microtime(true);
+               $profiler->startRecording('session');
                $session = null;
 
                try {
@@ -85,7 +85,7 @@ class SessionFactory
                                $session = new Session\Native($baseURL, $handler);
                        }
                } finally {
-                       $profiler->saveTimestamp($stamp1, 'parser');
+                       $profiler->stopRecording();
                        return $session;
                }
        }