https://t.me/RX1948
Server : LiteSpeed
System : Linux srv45672493.ultasrv.net 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User : dewab7604 ( 1100)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/dewabet138.net/public_html/wp-content/plugins/amp/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/dewabet138.net/public_html/wp-content/plugins/amp/src/AmpWpPluginFactory.php
<?php
/**
 * Final class AmpWpPluginFactory.
 *
 * @package AmpProject\AmpWP
 */

namespace AmpProject\AmpWP;

use AmpProject\AmpWP\Infrastructure\Plugin;

/**
 * The plugin factory is responsible for instantiating the plugin and returning
 * that instance.
 *
 * It can decide whether to return a shared or a fresh instance as needed.
 *
 * To read more about why this is preferable to a Singleton,
 *
 * @see https://www.alainschlesser.com/singletons-shared-instances/
 * @since 2.0
 * @internal
 */
final class AmpWpPluginFactory {

	/**
	 * Create and return an instance of the plugin.
	 *
	 * This always returns a shared instance. This way, outside code can always
	 * get access to the object instance of the plugin.
	 *
	 * @return Plugin Plugin instance.
	 */
	public static function create() {
		static $plugin = null;

		if ( null === $plugin ) {
			$plugin = new AmpWpPlugin();
		}

		return $plugin;
	}
}

https://t.me/RX1948 - 2025