PHP 8.2.31
Preview: Container.php Size: 1.06 KB
//home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Api/Container.php

<?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 );
	}
}

Directory Contents

Dirs: 11 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Enums DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Mutations DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Queries DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Scalars DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Traits DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Types DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
Utils DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
1.21 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
741 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
1.06 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).