HEX
Server: LiteSpeed
System: Linux onyx.7ho.st 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: atiscoir (1242)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/atiscoir/public_html/wp-content/plugins/popup-maker/classes/Base/Service.php
<?php
/**
 * Plugin controller.
 *
 * @package   PopupMaker
 * @copyright Copyright (c) 2024, Code Atlantic LLC
 */

namespace PopupMaker\Base;

defined( 'ABSPATH' ) || exit;

/**
 * Base service class for dependency injection.
 *
 * Provides container access for all services implementing the service interface.
 *
 * @template TContainer of \PopupMaker\Plugin\Core
 */
abstract class Service implements \PopupMaker\Interfaces\Service {
	/**
	 * Plugin Container.
	 *
	 * @var TContainer
	 */
	public $container;

	/**
	 * Initialize based on dependency injection principles.
	 *
	 * @param TContainer $container Plugin container.
	 * @return void
	 */
	public function __construct( $container ) {
		$this->container = $container;
	}
}