Bravo3\Orm\Services\PubSubManager::__construct PHP Method

__construct() public method

public __construct ( Bravo3\Orm\Drivers\PubSubDriverInterface $driver )
$driver Bravo3\Orm\Drivers\PubSubDriverInterface
    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();
    }