| Server IP : 13.126.101.145 / Your IP : 216.73.217.50 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/plugins/wpo365-login/Services/ |
Upload File : |
<?php
namespace Wpo\Services;
// Prevent public access to this script
defined( 'ABSPATH' ) or die( );
if ( !class_exists( '\Wpo\Services\Dependency_Service' ) ) {
class Dependency_Service {
private static $instance = null;
private $dependencies = array();
private function __construct() {
}
public static function get_instance() {
if ( empty( self::$instance ) ) {
self::$instance = new Dependency_Service();
}
return self::$instance;
}
public function add( $name, $dependency ) {
$this->dependencies[ $name ] = $dependency;
}
public function get( $request_id, $name ) {
if ( array_key_exists( $name, $this->dependencies ) ) {
return $this->dependencies[ $name ];
}
return false;
}
public function remove( $request_id, $name ) {
if ( array_key_exists( $name, $this->dependencies ) ) {
unset( $this->dependencies[ $name ] );
}
}
}
}