]> git.mxchange.org Git - friendica.git/commitdiff
Move deprecation message into bin-files
authorArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 15:43:26 +0000 (15:43 +0000)
committerArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 15:43:26 +0000 (15:43 +0000)
bin/daemon.php
bin/jetstream.php
bin/worker.php

index 546f207e08143158529fa21012c016d79871e9ad..c3d945d9415251fb938be002399012cb432d1792 100755 (executable)
@@ -6,7 +6,7 @@
  *
  * SPDX-License-Identifier: AGPL-3.0-or-later
  *
- * @deprecated 2025.02 use bin/console.php daemon instead
+ * @deprecated 2025.02 use `bin/console.php daemon` instead
  */
 
 /**
@@ -24,6 +24,8 @@ chdir(dirname(__DIR__));
 
 require dirname(__DIR__) . '/vendor/autoload.php';
 
+fwrite(STDOUT, '`bin/daemon.php` is deprecated since 2024.02 and will be removed in 5 months, please use `bin/console.php daemon` instead.' . \PHP_EOL);
+
 $argv = $_SERVER['argv'] ?? [];
 array_splice($argv, 1, 0, "daemon");
 
index 156f96185662f5ec53afac6f03a019db3db6cff6..2aa1886c6e1e0a2fb7d089306ec427ded9634b49 100755 (executable)
@@ -6,7 +6,7 @@
  *
  * SPDX-License-Identifier: AGPL-3.0-or-later
  *
- * @deprecated 2025.02 use bin/console.php jetstream instead
+ * @deprecated 2025.02 use `bin/console.php jetstream` instead
  */
 
 if (php_sapi_name() !== 'cli') {
@@ -19,6 +19,8 @@ chdir(dirname(__DIR__));
 
 require dirname(__DIR__) . '/vendor/autoload.php';
 
+fwrite(STDOUT, '`bin/jetstream.php` is deprecated since 2024.02 and will be removed in 5 months, please use `bin/console.php jetstream` instead.' . \PHP_EOL);
+
 $argv = $_SERVER['argv'] ?? [];
 array_splice($argv, 1, 0, "jetstream");
 
index a79d8836a73fc746afd9832984f5d2de86bdfbab..f099bc8e66f8dc0458bdf1c8040c51a6b4e482f4 100755 (executable)
@@ -8,7 +8,7 @@
  *
  * Starts the background processing
  *
- * @deprecated 2025.02 use bin/console.php worker instead
+ * @deprecated 2025.02 use `bin/console.php worker` instead
  */
 
 if (php_sapi_name() !== 'cli') {
@@ -21,6 +21,8 @@ chdir(dirname(__DIR__));
 
 require dirname(__DIR__) . '/vendor/autoload.php';
 
+fwrite(STDOUT, '`bin/worker.php` is deprecated since 2024.02 and will be removed in 5 months, please use `bin/console.php worker` instead.' . \PHP_EOL);
+
 $argv = $_SERVER['argv'] ?? [];
 array_splice($argv, 1, 0, "worker");