]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/LoggerFactory.php
Fix notices
[friendica.git] / src / Factory / LoggerFactory.php
index 0dae19a25055a199804107885d3d88d5c9d215e0..ad6658b563b6e8040f80d0ad36bc0922cd8e48f3 100644 (file)
@@ -1,8 +1,27 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2021, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Factory;
 
-use Friendica\Core\Config\IConfiguration;
+use Friendica\Core\Config\IConfig;
 use Friendica\Core\Logger;
 use Friendica\Database\Database;
 use Friendica\Network\HTTPException\InternalServerErrorException;
@@ -49,14 +68,14 @@ class LoggerFactory
        /**
         * Creates a new PSR-3 compliant logger instances
         *
-        * @param Database      $database The Friendica Database instance
-        * @param IConfiguration $config   The config
-        * @param Profiler      $profiler The profiler of the app
-        * @param FileSystem    $fileSystem FileSystem utils
+        * @param Database   $database   The Friendica Database instance
+        * @param IConfig    $config     The config
+        * @param Profiler   $profiler   The profiler of the app
+        * @param FileSystem $fileSystem FileSystem utils
         *
         * @return LoggerInterface The PSR-3 compliant logger instance
         */
-       public function create(Database $database, IConfiguration $config, Profiler $profiler, FileSystem $fileSystem)
+       public function create(Database $database, IConfig $config, Profiler $profiler, FileSystem $fileSystem)
        {
                if (empty($config->get('system', 'debugging', false))) {
                        $logger = new VoidLogger();
@@ -137,16 +156,16 @@ class LoggerFactory
         *
         * It should never get filled during normal usage of Friendica
         *
-        * @param IConfiguration $config   The config
-        * @param Profiler      $profiler The profiler of the app
-        * @param FileSystem    $fileSystem FileSystem utils
+        * @param IConfig    $config     The config
+        * @param Profiler   $profiler   The profiler of the app
+        * @param FileSystem $fileSystem FileSystem utils
         *
         * @return LoggerInterface The PSR-3 compliant logger instance
         *
         * @throws InternalServerErrorException
         * @throws \Exception
         */
-       public static function createDev(IConfiguration $config, Profiler $profiler, FileSystem $fileSystem)
+       public static function createDev(IConfig $config, Profiler $profiler, FileSystem $fileSystem)
        {
                $debugging   = $config->get('system', 'debugging');
                $stream      = $config->get('system', 'dlogfile');