diff --git a/src/Command/CommandBase.php b/src/Command/CommandBase.php index a7519c9e..941d56da 100644 --- a/src/Command/CommandBase.php +++ b/src/Command/CommandBase.php @@ -19,6 +19,8 @@ namespace Drupal\apigee_edge\Command; +@trigger_error('The ' . __NAMESPACE__ . '\CommandBase is deprecated in apigee_edge:3.0.4 and is removed from apigee_edge:3.1.0. Drupal/console is not compatible with Drupal 10. See https://github.com/apigee/apigee-edge-drupal/issues/984', E_USER_DEPRECATED); + use Drupal\apigee_edge\CliServiceInterface; use Drupal\Console\Core\Command\Command; use Drupal\Console\Core\Command\Shared\CommandTrait; @@ -32,6 +34,11 @@ /** * Class CommandBase for shared functionality. + * + * @deprecated in apigee_edge:3.0.4 and is removed from apigee_edge:3.1.0. + * Drupal/console is not compatible with Drupal 10. + * + * @see https://github.com/apigee/apigee-edge-drupal/issues/984 */ abstract class CommandBase extends Command { diff --git a/src/Command/CreateEdgeRoleCommand.php b/src/Command/CreateEdgeRoleCommand.php index 8217682d..0e74c35c 100644 --- a/src/Command/CreateEdgeRoleCommand.php +++ b/src/Command/CreateEdgeRoleCommand.php @@ -31,6 +31,12 @@ * extension="apigee_edge", * extensionType="module" * ) + * + * @deprecated in apigee_edge:3.0.4 and is removed from apigee_edge:3.1.0. + * Drupal/console is not compatible with Drupal 10. + * + * @see https://github.com/apigee/apigee-edge-drupal/issues/984 + * @phpstan-ignore-next-line */ class CreateEdgeRoleCommand extends CommandBase { diff --git a/src/Command/DeveloperSyncCommand.php b/src/Command/DeveloperSyncCommand.php index 557f9940..c07a3bf3 100644 --- a/src/Command/DeveloperSyncCommand.php +++ b/src/Command/DeveloperSyncCommand.php @@ -29,6 +29,12 @@ * extension="apigee_edge", * extensionType="module" * ) + * + * @deprecated in apigee_edge:3.0.4 and is removed from apigee_edge:3.1.0. + * Drupal/console is not compatible with Drupal 10. + * + * @see https://github.com/apigee/apigee-edge-drupal/issues/984 + * @phpstan-ignore-next-line */ class DeveloperSyncCommand extends CommandBase { diff --git a/src/Command/DrupalConsoleLog.php b/src/Command/DrupalConsoleLog.php index fac7fbf3..ea4322fe 100644 --- a/src/Command/DrupalConsoleLog.php +++ b/src/Command/DrupalConsoleLog.php @@ -27,6 +27,11 @@ /** * Redirects Drupal logging messages to Drupal Console log. + * + * @deprecated in apigee_edge:3.0.4 and is removed from apigee_edge:3.1.0. + * Drupal/console is not compatible with Drupal 10. + * + * @see https://github.com/apigee/apigee-edge-drupal/issues/984 */ class DrupalConsoleLog implements LoggerInterface { diff --git a/tests/src/Unit/Command/CreateEdgeRoleCommandTest.php b/tests/src/Unit/Command/CreateEdgeRoleCommandTest.php index ede0d4f9..8ffd42b8 100644 --- a/tests/src/Unit/Command/CreateEdgeRoleCommandTest.php +++ b/tests/src/Unit/Command/CreateEdgeRoleCommandTest.php @@ -35,6 +35,8 @@ * Test ApigeeEdgeCommands class. * * @group apigee_edge + * + * @group legacy */ class CreateEdgeRoleCommandTest extends UnitTestCase {