| Server IP : 195.58.49.151 / Your IP : 216.73.217.39 Web Server : Apache/2.4.67 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.20 System : Linux hs.hsdns.ru 6.1.0-48-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.172-1 (2026-05-15) x86_64 User : antilam ( 1007) PHP Version : 8.4.22 Disable Function : system,passthru,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/antilam/web/antilam.ru/public_html/wp-content/plugins/woocommerce/src/Api/ |
Upload File : |
<?php
declare(strict_types=1);
namespace Automattic\WooCommerce\Api;
/**
* Resolver container for code-API command classes.
*
* Autogenerated GraphQL query and mutation resolvers look up the corresponding
* code-API command through {@see self::get()}. WooCommerce core delegates every
* lookup to the main WooCommerce DI container.
*
* Sibling plugins that reuse the GraphQL infrastructure and want their command
* classes instantiated through a container of their own can ship their own
* Container class at `<plugin-api-namespace>\Container` with the same public
* signature: ApiBuilder detects it during generation and routes the generated
* resolvers through it. When no such class is present, resolvers fall back to
* `new $command_class()`.
*/
final class Container {
/**
* Resolve a command class to an instance.
*
* @param string $class_name Fully-qualified name of a code-API command class.
* @return object An instance of $class_name.
*/
public static function get( string $class_name ): object {
return wc_get_container()->get( $class_name );
}
}