SILENT KILLERPanel

Current Path: > home > codekrsu > > cuddlebuds.lk > wp-content > plugins > woocommerce > src > Blocks


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//cuddlebuds.lk/wp-content/plugins/woocommerce/src/Blocks

NameTypeSizeLast ModifiedActions
AI Directory - -
AIContent Directory - -
Assets Directory - -
BlockTypes Directory - -
Domain Directory - -
Images Directory - -
Integrations Directory - -
Patterns Directory - -
Payments Directory - -
Registry Directory - -
Shipping Directory - -
Templates Directory - -
Utils Directory - -
Assets.php File 2839 bytes December 27 2023 00:45:02.
AssetsController.php File 19050 bytes June 23 2025 19:46:28.
BlockPatterns.php File 8669 bytes June 23 2025 19:46:28.
BlockTemplatesController.php File 22594 bytes November 14 2024 01:17:00.
BlockTemplatesRegistry.php File 5499 bytes June 23 2025 19:46:28.
BlockTypesController.php File 21711 bytes June 30 2025 17:49:22.
InboxNotifications.php File 583 bytes December 27 2023 00:45:02.
Installer.php File 4180 bytes June 25 2024 21:17:40.
Library.php File 1086 bytes December 27 2023 00:45:02.
Options.php File 336 bytes December 27 2023 00:45:02.
Package.php File 2782 bytes May 12 2025 21:07:28.
QueryFilters.php File 18117 bytes May 12 2025 21:07:28.
TemplateOptions.php File 1235 bytes May 12 2025 21:07:28.

Reading File: /home/codekrsu//cuddlebuds.lk/wp-content/plugins/woocommerce/src/Blocks/Package.php

<?php

namespace Automattic\WooCommerce\Blocks;

use Automattic\WooCommerce\Blocks\Domain\Package as NewPackage;
use Automattic\WooCommerce\Blocks\Domain\Bootstrap;
use Automattic\WooCommerce\Blocks\Registry\Container;
use Automattic\WooCommerce\Blocks\Domain\Services\FeatureGating;

/**
 * Main package class.
 *
 * Returns information about the package and handles init.
 *
 * In the context of this plugin, it handles init and is called from the main
 * plugin file (woocommerce-gutenberg-products-block.php).
 *
 * In the context of WooCommerce core, it handles init and is called from
 * WooCommerce's package loader. The main plugin file is _not_ loaded.
 *
 * @since 2.5.0
 */
class Package {


	/**
	 * For back compat this is provided. Ideally, you should register your
	 * class with Automattic\Woocommerce\Blocks\Container and make Package a
	 * dependency.
	 *
	 * @since 2.5.0
	 * @return Package  The Package instance class
	 */
	protected static function get_package() {
		return self::container()->get( NewPackage::class );
	}

	/**
	 * Init the package - load the blocks library and define constants.
	 *
	 * @since 2.5.0 Handled by new NewPackage.
	 */
	public static function init() {
		self::container()->get( Bootstrap::class );
	}

	/**
	 * Return the version of the package.
	 *
	 * @return string
	 */
	public static function get_version() {
		return self::get_package()->get_version();
	}

	/**
	 * Return the path to the package.
	 *
	 * @return string
	 */
	public static function get_path() {
		return self::get_package()->get_path();
	}

	/**
	 * Returns an instance of the FeatureGating class.
	 *
	 * @return FeatureGating
	 * @deprecated since 9.6, use wp_get_environment_type() instead.
	 */
	public static function feature() {
		wc_deprecated_function( 'Package::feature', '9.6', 'wp_get_environment_type' );
		return new FeatureGating();
	}

	/**
	 * Loads the dependency injection container for woocommerce blocks.
	 *
	 * @param boolean $reset Used to reset the container to a fresh instance.
	 *                       Note: this means all dependencies will be
	 *                       reconstructed.
	 */
	public static function container( $reset = false ) {
		static $container;
		if (
			! $container instanceof Container
			|| $reset
		) {
			$container = new Container();
			// register Package.
			$container->register(
				NewPackage::class,
				function ( $container ) {
					// leave for automated version bumping.
					$version = '11.8.0-dev';
					return new NewPackage(
						$version,
						dirname( __DIR__, 2 )
					);
				}
			);
			// register Bootstrap.
			$container->register(
				Bootstrap::class,
				function ( $container ) {
					return new Bootstrap(
						$container
					);
				}
			);
		}
		return $container;
	}
}

SILENT KILLER Tool