Hacked By AnonymousFox

Current Path : /home/allslyeo/locallogistics.net/wp-content/plugins/meta-box/inc/
Upload File :
Current File : //home/allslyeo/locallogistics.net/wp-content/plugins/meta-box/inc/storage-registry.php

<?php
/**
 * Storage registry class
 *
 * @package Meta Box
 */

/**
 * Class RWMB_Storage_Registry
 */
class RWMB_Storage_Registry {

	/**
	 * List storage instances.
	 *
	 * @var array
	 */
	protected $storages = array();

	/**
	 * Get storage instance.
	 *
	 * @param string $class_name Storage class name.
	 * @return RWMB_Storage_Interface
	 */
	public function get( $class_name ) {
		if ( empty( $this->storages[ $class_name ] ) ) {
			if ( ! class_exists( $class_name ) ) {
				return null;
			}

			$this->storages[ $class_name ] = new $class_name();
		}

		return $this->storages[ $class_name ];
	}
}

Hacked By AnonymousFox1.0, Coded By AnonymousFox