BroadcastManager

class BroadcastManager implements Factory (View source)

Properties

protected Application $app The application instance.
protected array $drivers The array of resolved broadcast drivers.
protected array $customCreators The registered custom driver creators.

Methods

void __construct(Application $app)

Create a new manager instance.

void connection(string $driver = null)

Get a driver instance.

mixed driver(string $name = null)

Get a driver instance.

Broadcaster get(string $name)

Attempt to get the connection from the local cache.

Broadcaster resolve(string $name)

Resolve the given store.

mixed callCustomCreator(array $config)

Call a custom driver creator.

Broadcaster createPusherDriver(array $config)

Create an instance of the driver.

Broadcaster createRedisDriver(array $config)

Create an instance of the driver.

Broadcaster createLogDriver(array $config)

Create an instance of the driver.

array getConfig(string $name)

Get the connection configuration.

string getDefaultDriver()

Get the default driver name.

void setDefaultDriver(string $name)

Set the default driver name.

$this extend(string $driver, Closure $callback)

Register a custom driver creator Closure.

mixed __call(string $method, array $parameters)

Dynamically call the default driver instance.

Details

void __construct(Application $app)

Create a new manager instance.

Parameters

Application $app

Return Value

void

void connection(string $driver = null)

Get a driver instance.

Parameters

string $driver

Return Value

void

mixed driver(string $name = null)

Get a driver instance.

Parameters

string $name

Return Value

mixed

protected Broadcaster get(string $name)

Attempt to get the connection from the local cache.

Parameters

string $name

Return Value

Broadcaster

protected Broadcaster resolve(string $name)

Resolve the given store.

Parameters

string $name

Return Value

Broadcaster

Exceptions

InvalidArgumentException

protected mixed callCustomCreator(array $config)

Call a custom driver creator.

Parameters

array $config

Return Value

mixed

protected Broadcaster createPusherDriver(array $config)

Create an instance of the driver.

Parameters

array $config

Return Value

Broadcaster

protected Broadcaster createRedisDriver(array $config)

Create an instance of the driver.

Parameters

array $config

Return Value

Broadcaster

protected Broadcaster createLogDriver(array $config)

Create an instance of the driver.

Parameters

array $config

Return Value

Broadcaster

protected array getConfig(string $name)

Get the connection configuration.

Parameters

string $name

Return Value

array

string getDefaultDriver()

Get the default driver name.

Return Value

string

void setDefaultDriver(string $name)

Set the default driver name.

Parameters

string $name

Return Value

void

$this extend(string $driver, Closure $callback)

Register a custom driver creator Closure.

Parameters

string $driver
Closure $callback

Return Value

$this

mixed __call(string $method, array $parameters)

Dynamically call the default driver instance.

Parameters

string $method
array $parameters

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Broadcasting/BroadcastManager.html