From 5b1d060e5a4831a8dc513870c8e91067b9c98efe Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 22 Jun 2021 20:35:13 +0300 Subject: [PATCH] deprecated comments --- extension.php | 4 ++++ upgrade.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/extension.php b/extension.php index 51b973747a..e8f7d9cae3 100644 --- a/extension.php +++ b/extension.php @@ -27,6 +27,10 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ +/** + * @deprecated Use `php command.php extension --file="path/to/extension/package.zip"`. + */ + if (substr(php_sapi_name(), 0, 3) !== 'cli') { exit; } diff --git a/upgrade.php b/upgrade.php index 6e95a7ced3..3f32a24f0f 100644 --- a/upgrade.php +++ b/upgrade.php @@ -27,6 +27,10 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ +/** + * @deprecated Use `php command.php upgrade`. + */ + if (substr(php_sapi_name(), 0, 3) !== 'cli') { exit; }