]> git.mxchange.org Git - friendica.git/commitdiff
Add deprecation notice
authorPhilipp <admin@philipp.info>
Thu, 2 Jan 2025 12:03:28 +0000 (13:03 +0100)
committerPhilipp <admin@philipp.info>
Thu, 2 Jan 2025 12:03:28 +0000 (13:03 +0100)
bin/daemon.php
bin/jetstream.php
src/Console/Daemon.php
src/Console/JetstreamDaemon.php

index 8f567edfb7d9c6d0fa81b32d522b836c4a13d0de..499bbc5d9b9d0e6c4732f713e27360e50f2c11c5 100755 (executable)
@@ -5,6 +5,8 @@
  * SPDX-FileCopyrightText: 2010-2024 the Friendica project
  *
  * SPDX-License-Identifier: AGPL-3.0-or-later
+ *
+ * @deprecated 2025.01 use bin/console.php daemon instead
  */
 
 /**
index c696d044b996400475932f43d6037419b9e57bb8..f1834c783b5f9f3307cc01a3a9d464f512d9d7e7 100755 (executable)
@@ -6,6 +6,7 @@
  *
  * SPDX-License-Identifier: AGPL-3.0-or-later
  *
+ * @deprecated 2025.01 use bin/console.php jetstream instead
  */
 
 use Dice\Dice;
index c2f1029e4a72cd7981a8d3ead6957238e42ce6ab..6b1476a52ef8c2f81bac30de76371f7535d7e4aa 100644 (file)
@@ -90,6 +90,10 @@ HELP;
 
        protected function doExecute()
        {
+               if ($this->executable != 'bin/console.php') {
+                       $this->out(sprintf("Deprecated use of '%s', use '%s daemon' instead", $this->executable, 'bin/console.php'));
+               }
+
                if ($this->mode->isInstall()) {
                        throw new RuntimeException("Friendica isn't properly installed yet");
                }
index 8dd726f4b90301b702409c5041435a1e80166b93..2d591d52d93c4efab3555b351f71bfce139e5d62 100644 (file)
@@ -77,6 +77,10 @@ HELP;
 
        protected function doExecute()
        {
+               if ($this->executable != 'bin/console.php') {
+                       $this->out(sprintf("Deprecated use of '%s', use '%s jetstream' instead", $this->executable, 'bin/console.php'));
+               }
+
                if ($this->mode->isInstall()) {
                        throw new RuntimeException("Friendica isn't properly installed yet");
                }