From f9f28af38ba628b1433239d214f28c911782f4ad Mon Sep 17 00:00:00 2001 From: colemanw Date: Tue, 12 Mar 2024 10:34:22 -0400 Subject: [PATCH] Deprecate api command APIv3 is officially deprecated so civix should reflect that. --- src/CRM/CivixBundle/Command/AddAngularPageCommand.php | 3 +++ src/CRM/CivixBundle/Command/AddApiCommand.php | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CRM/CivixBundle/Command/AddAngularPageCommand.php b/src/CRM/CivixBundle/Command/AddAngularPageCommand.php index 2a5a0676..ef3de2c8 100644 --- a/src/CRM/CivixBundle/Command/AddAngularPageCommand.php +++ b/src/CRM/CivixBundle/Command/AddAngularPageCommand.php @@ -12,6 +12,9 @@ use CRM\CivixBundle\Builder\Template; use CRM\CivixBundle\Utils\Path; +/** + * @deprecated + */ class AddAngularPageCommand extends AbstractCommand { protected function configure() { diff --git a/src/CRM/CivixBundle/Command/AddApiCommand.php b/src/CRM/CivixBundle/Command/AddApiCommand.php index 9e4006ee..48669de4 100644 --- a/src/CRM/CivixBundle/Command/AddApiCommand.php +++ b/src/CRM/CivixBundle/Command/AddApiCommand.php @@ -15,6 +15,9 @@ use Exception; use Symfony\Component\Console\Style\SymfonyStyle; +/** + * @deprecated + */ class AddApiCommand extends AbstractCommand { const API_VERSION = 3; @@ -25,7 +28,7 @@ public static function getSchedules() { protected function configure() { $this ->setName('generate:api') - ->setDescription('Add a new API function to a CiviCRM Module-Extension') + ->setDescription('Add APIv3 function (DEPRECATED)') ->addArgument('', InputArgument::REQUIRED, 'The entity against which the action runs (eg "Contact", "MyEntity")') ->addArgument('', InputArgument::REQUIRED, 'The action which will be created (eg "create", "myaction")') ->addOption('schedule', NULL, InputOption::VALUE_OPTIONAL, 'Schedule this action as a recurring cron job (' . implode(', ', self::getSchedules()) . ') [For CiviCRM 4.3+]')