# image-optimization/trunk/modules/core/components/notificator.php

Image Optimizer – Compress Images and Convert to WebP or AVIF, version trunk. 31 lines.

- Page: https://pluginprobe.com/plugins/image-optimization/trunk/code/modules/core/components/notificator.php
- Raw: https://pluginprobe.com/plugins/image-optimization/trunk/raw/modules/core/components/notificator.php
- Modified: 2026-07-07T08:31:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-optimization/trunk/code/modules/core/components/notificator.php#L10-L20`.

```php
<?php

namespace ImageOptimization\Modules\Core\Components;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Elementor\WPNotificationsPackage\V120\Notifications as Notifications_SDK;

class Notificator {
	private ?Notifications_SDK $notificator = null;

	public function get_notifications_by_conditions( bool $force_request = false ): array {
		return $this->notificator->get_notifications_by_conditions( $force_request );
	}

	public function __construct() {
		require_once IMAGE_OPTIMIZATION_PATH . '/vendor/autoload.php';

		$this->notificator = new Notifications_SDK( [
			'app_name'       => 'image-optimizer',
			'app_version'    => IMAGE_OPTIMIZATION_VERSION,
			'short_app_name' => 'eio',
			'app_data'       => [
				'plugin_basename' => IMAGE_OPTIMIZATION_PLUGIN_FILE,
			],
		] );
	}
}

```
