Move deprecation message into bin-files

This commit is contained in:
Art4 2025-01-22 15:43:26 +00:00
parent 700cedd69b
commit 69830b9c03
3 changed files with 9 additions and 3 deletions

View file

@ -6,7 +6,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-or-later * 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'; 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'] ?? []; $argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "daemon"); array_splice($argv, 1, 0, "daemon");

View file

@ -6,7 +6,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-or-later * 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') { if (php_sapi_name() !== 'cli') {
@ -19,6 +19,8 @@ chdir(dirname(__DIR__));
require dirname(__DIR__) . '/vendor/autoload.php'; 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'] ?? []; $argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "jetstream"); array_splice($argv, 1, 0, "jetstream");

View file

@ -8,7 +8,7 @@
* *
* Starts the background processing * 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') { if (php_sapi_name() !== 'cli') {
@ -21,6 +21,8 @@ chdir(dirname(__DIR__));
require dirname(__DIR__) . '/vendor/autoload.php'; 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'] ?? []; $argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "worker"); array_splice($argv, 1, 0, "worker");