HEX
Server: Apache
System: Linux host17.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User: shrsglobal (7178)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //home/shrsglobal/www/wp-content/plugins/pro-elements/core/notifications/notifications-manager.php
<?php

namespace ElementorPro\Core\Notifications;

use ElementorPro\Plugin;

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

class Notifications_Manager {

	/**
	 * Send a notification.
	 *
	 * @param \ElementorPro\Core\Notifications\Notification $notification
	 * @param $notifiable
	 *
	 * @throws \Exception
	 *
	 * @return $this
	 */
	public function send( Notification $notification, $notifiable ) {
		$payloads = $notification->get_payloads( $notifiable );

		Plugin::instance()->integrations->run( $payloads );

		return $this;
	}
}