Bravo3\Orm\Drivers\PubSubDriverInterface::isPubSubSupported PHP Method

isPubSubSupported() public method

Confirm that the driver supports Pub/Sub messaging.
public isPubSubSupported ( ) : boolean
return boolean
    public function isPubSubSupported();

Usage Example

Beispiel #1
0
 /**
  * @param PubSubDriverInterface $driver
  */
 public function __construct(PubSubDriverInterface $driver)
 {
     if (!$driver->isPubSubSupported()) {
         throw new NotSupportedException('Driver does not support Pub/Sub messaging.');
     }
     $this->driver = $driver;
     $this->event_dispatcher = new EventDispatcher();
 }