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