| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPGraphQL\Connection; |
| 4 |
|
| 5 |
/** |
| 6 |
* @todo Remove in 3.0.0 |
| 7 |
* @deprecated 1.13.0 |
| 8 |
* @codeCoverageIgnore |
| 9 |
*/ |
| 10 |
class Users extends \WPGraphQL\Type\Connection\Users { |
| 11 |
/** |
| 12 |
* Message that this class will be removed in 3.0.0. |
| 13 |
* |
| 14 |
* @param string $function_name |
| 15 |
*/ |
| 16 |
private static function doing_it_wrong( string $function_name ): void { |
| 17 |
_doing_it_wrong( |
| 18 |
__METHOD__, |
| 19 |
sprintf( /* translators: %s is the current class name, %s is the new class name */ |
| 20 |
esc_html__( 'The %1$s class is deprecated and will be removed in the next major version of WPGraphQL. Use %2$s instead.', 'wp-graphql' ), |
| 21 |
esc_html( self::class ), |
| 22 |
esc_html( \WPGraphQL\Type\Connection\Users::class ) |
| 23 |
), |
| 24 |
'1.13.0' |
| 25 |
); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* {@inheritDoc} |
| 30 |
* |
| 31 |
* @deprecated 1.13.0 |
| 32 |
*/ |
| 33 |
public static function register_connections() { |
| 34 |
self::doing_it_wrong( __METHOD__ ); |
| 35 |
_deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\Users::register_connections' ); |
| 36 |
parent::register_connections(); |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* {@inheritDoc} |
| 41 |
* |
| 42 |
* @deprecated 1.13.0 |
| 43 |
*/ |
| 44 |
public static function get_connection_args() { |
| 45 |
self::doing_it_wrong( __METHOD__ ); |
| 46 |
_deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\Users::get_connection_args' ); |
| 47 |
return parent::get_connection_args(); |
| 48 |
} |
| 49 |
} |
| 50 |
|