Automattic\WooCommerce\Blocks

Package::get_package()protected staticWC 2.5.0

For back compat this is provided. Ideally, you should register your class with Automattic\Woocommerce\Blocks\Container and make Package a dependency.

Method of the class: Package{}

No Hooks.

Return

Package. The Package instance class

Usage

$result = Package::get_package();

Changelog

Since 2.5.0 Introduced.

Package::get_package() code WC 8.7.0

protected static function get_package() {
	return self::container()->get( NewPackage::class );
}