$91 GRAYBYTE WORDPRESS FILE MANAGER $73

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/cepurhuye.rw/wp-content/plugins/elementor/core/utils/

HOME
Current File : /home/bravrvjk/cepurhuye.rw/wp-content/plugins/elementor/core/utils//assets-config-provider.php
<?php
namespace Elementor\Core\Utils;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Assets_Config_Provider extends Collection {
	/**
	 * @var callable|null
	 */
	private $path_resolver = null;

	/**
	 * @param callable $path_resolver
	 *
	 * @return $this
	 */
	public function set_path_resolver( callable $path_resolver ) {
		$this->path_resolver = $path_resolver;

		return $this;
	}

	/**
	 * Load asset config from a file into the collection.
	 *
	 * @param $key
	 * @param $path
	 *
	 * @return $this
	 */
	public function load( $key, $path = null ) {
		if ( ! $path && $this->path_resolver ) {
			$path_resolver_callback = $this->path_resolver;

			$path = $path_resolver_callback( $key );
		}

		if ( ! $path || ! file_exists( $path ) ) {
			return $this;
		}

		$config = require $path;

		if ( ! $this->is_valid_handle( $config ) ) {
			return $this;
		}

		$this->items[ $key ] = [
			'handle' => $config['handle'],
			'deps' => $this->is_valid_deps( $config ) ? $config['deps'] : [],
		];

		return $this;
	}

	/**
	 * Check that the handle property in the config is a valid.
	 *
	 * @param $config
	 *
	 * @return bool
	 */
	private function is_valid_handle( $config ) {
		return ! empty( $config['handle'] ) && is_string( $config['handle'] );
	}

	/**
	 * Check that the deps property in the config is a valid.
	 *
	 * @param $config
	 *
	 * @return bool
	 */
	private function is_valid_deps( $config ) {
		return isset( $config['deps'] ) && is_array( $config['deps'] );
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
api
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
import-export
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
promotions
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
svg
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
ab-test.php
2.446 KB
15 Sep 2025 2.10 PM
bravrvjk / bravrvjk
0644
assets-config-provider.php
1.486 KB
23 Aug 2023 5.47 PM
bravrvjk / bravrvjk
0644
assets-translation-loader.php
2.508 KB
21 Oct 2025 4.51 PM
bravrvjk / bravrvjk
0644
collection.php
10.133 KB
22 Dec 2025 5.25 PM
bravrvjk / bravrvjk
0644
exceptions.php
0.692 KB
17 Mar 2025 5.28 PM
bravrvjk / bravrvjk
0644
force-locale.php
3.555 KB
23 Apr 2023 3.22 PM
bravrvjk / bravrvjk
0644
hints.php
14.66 KB
30 Mar 2026 1.49 PM
bravrvjk / bravrvjk
0644
http.php
0.958 KB
23 Apr 2023 3.22 PM
bravrvjk / bravrvjk
0644
plugins-manager.php
2.84 KB
28 Apr 2025 11.15 AM
bravrvjk / bravrvjk
0644
static-collection.php
1.086 KB
21 Oct 2025 4.51 PM
bravrvjk / bravrvjk
0644
str.php
0.978 KB
17 Mar 2025 5.28 PM
bravrvjk / bravrvjk
0644
template-library-element-iterator.php
0.748 KB
30 Mar 2026 1.49 PM
bravrvjk / bravrvjk
0644
template-library-import-export-utils.php
7.196 KB
30 Mar 2026 1.49 PM
bravrvjk / bravrvjk
0644
template-library-snapshot-processor.php
6.241 KB
30 Mar 2026 1.49 PM
bravrvjk / bravrvjk
0644
version.php
3.778 KB
21 Oct 2025 4.51 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF