Broadcaster

class Broadcaster implements Broadcaster (View source)

Properties

protected array $channels The registered channel authenticators.
protected BindingRegistrar $bindingRegistrar The binding registrar instance.

Methods

$this channel(string $channel, callable $callback)

Register a channel authenticator.

mixed verifyUserCanAccessChannel(Request $request, string $channel)

Authenticate the incoming request for a given channel.

array extractAuthParameters(string $pattern, string $channel, callable $callback)

Extract the parameters from the given pattern and channel.

array extractChannelKeys(string $pattern, string $channel)

Extract the channel keys from the incoming channel name.

mixed resolveBinding(string $key, string $value, array $callbackParameters)

Resolve the given parameter binding.

mixed resolveExplicitBindingIfPossible(string $key, mixed $value)

Resolve an explicit parameter binding if applicable.

mixed resolveImplicitBindingIfPossible(string $key, mixed $value, array $callbackParameters)

Resolve an implicit parameter binding if applicable.

bool isImplicitlyBindable(string $key, ReflectionParameter $parameter)

Determine if a given key and parameter is implicitly bindable.

array formatChannels(array $channels)

Format the channel array into an array of strings.

BindingRegistrar binder()

Get the model binding registrar instance.

Details

$this channel(string $channel, callable $callback)

Register a channel authenticator.

Parameters

string $channel
callable $callback

Return Value

$this

protected mixed verifyUserCanAccessChannel(Request $request, string $channel)

Authenticate the incoming request for a given channel.

Parameters

Request $request
string $channel

Return Value

mixed

protected array extractAuthParameters(string $pattern, string $channel, callable $callback)

Extract the parameters from the given pattern and channel.

Parameters

string $pattern
string $channel
callable $callback

Return Value

array

protected array extractChannelKeys(string $pattern, string $channel)

Extract the channel keys from the incoming channel name.

Parameters

string $pattern
string $channel

Return Value

array

protected mixed resolveBinding(string $key, string $value, array $callbackParameters)

Resolve the given parameter binding.

Parameters

string $key
string $value
array $callbackParameters

Return Value

mixed

protected mixed resolveExplicitBindingIfPossible(string $key, mixed $value)

Resolve an explicit parameter binding if applicable.

Parameters

string $key
mixed $value

Return Value

mixed

protected mixed resolveImplicitBindingIfPossible(string $key, mixed $value, array $callbackParameters)

Resolve an implicit parameter binding if applicable.

Parameters

string $key
mixed $value
array $callbackParameters

Return Value

mixed

protected bool isImplicitlyBindable(string $key, ReflectionParameter $parameter)

Determine if a given key and parameter is implicitly bindable.

Parameters

string $key
ReflectionParameter $parameter

Return Value

bool

protected array formatChannels(array $channels)

Format the channel array into an array of strings.

Parameters

array $channels

Return Value

array

protected BindingRegistrar binder()

Get the model binding registrar instance.

Return Value

BindingRegistrar

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