| Server IP : 103.48.194.25 / Your IP : 216.73.217.33 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 8.2.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/sieuthimayasia.com/public_html/wp-content/plugins/wp-smtp/src/Mail/ |
Upload File : |
<?php
namespace SolidWP\Mail;
use SolidWP\Mail\lucatume\DI52\App as DI52App;
use SolidWP\Mail\StellarWP\ContainerContract\ContainerInterface;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class App
*
* This class serves as the main entry point for accessing the dependency container.
* It follows the singleton pattern to ensure that only one instance of the container exists.
*
* @package Solid_SMTP
*/
class App extends DI52App {
/**
* A reference to the singleton instance of the DI container
* the application uses as Service Locator.
*
* @since 0.1.0
*
* @var ContainerInterface
*
* @phpstan-ignore-next-line
*/
protected static $container;
/**
* Returns the singleton instance of the DI container the application
* will use as Service Locator.
*
* @since 1.3.0
*
* @return ContainerInterface The singleton instance of the Container used as Service Locator
* by the application.
*/
public static function container(): ContainerInterface {
return static::$container;
}
/**
* Sets the container instance the Application should use as a Service Locator.
*
* If the Application already stores a reference to a Container instance, then
* this will be replaced by the new one.
*
* @since 1.3.0
*
* @param ContainerInterface $container A reference to the Container instance the Application
* should use as a Service Locator.
*
* @return void The method does not return any value.
*/
public static function setContainer( $container ) {
static::$container = $container;
}
}