PluginProbe
WPGraphQL / trunk
WPGraphQL vtrunk
2.22.3 2.22.2 2.22.1 2.22.0 2.21.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.15.0 2.14.1 2.14.0 2.13.0 2.2.0 2.3.0 2.3.3 2.3.6 2.3.8 2.5.0 2.5.1 2.5.2 2.5.3 All 177 releases
wp-graphql / deprecated / wp-cli.php

wp-cli.php in WPGraphQL trunk, at deprecated/wp-cli.php

26 lines 664 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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