]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseObject.php
Filesystem storage: handle basepath with trailing slash
[friendica.git] / src / BaseObject.php
index 33ed67754674b34731bef4eab345df47be755468..84ff193823113a1534e3e407ac2eb712f3fda5f0 100644 (file)
@@ -4,6 +4,10 @@
  */
 namespace Friendica;
 
+require_once 'boot.php';
+
+use Friendica\Util\LoggerFactory;
+
 /**
  * Basic object
  *
@@ -19,11 +23,13 @@ class BaseObject
         * Same as get_app from boot.php
         *
         * @return App
+        * @throws \Exception
         */
        public static function getApp()
        {
                if (empty(self::$app)) {
-                       self::$app = new App(dirname(__DIR__));
+                       $logger = $logger = LoggerFactory::create('app');
+                       self::$app = new App(dirname(__DIR__), $logger);
                }
 
                return self::$app;