| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; // Exit if accessed directly. |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Class - WPGraphQL_CLI_Command |
| 9 |
* |
| 10 |
* @deprecated since 2.7.0 Use \WPGraphQL\CLI\Commands instead. |
| 11 |
* @codeCoverageIgnore |
| 12 |
*/ |
| 13 |
class WPGraphQL_CLI_Command extends \WPGraphQL\CLI\Commands { |
| 14 |
|
| 15 |
/** |
| 16 |
* {@inheritDoc} |
| 17 |
* |
| 18 |
* @deprecated since 2.7.0 Use \WPGraphQL\CLI\Commands::generate_static_schema instead. |
| 19 |
*/ |
| 20 |
public function generate_static_schema( $args, $assoc_args ): void { |
| 21 |
\WP_CLI::warning( 'The WPGraphQL_CLI_Command class is deprecated since 2.7.0. Please use the \WPGraphQL\CLI\Commands class instead.' ); |
| 22 |
|
| 23 |
parent::generate_static_schema( $args, $assoc_args ); |
| 24 |
} |
| 25 |
} |
| 26 |
|