Broadcaster
in package
implements
Broadcaster
Interfaces, Classes and Traits
Table of Contents
- $bindingRegistrar : BindingRegistrar
- The binding registrar instance.
- $channels : array<string|int, mixed>
- The registered channel authenticators.
- channel() : $this
- Register a channel authenticator.
- binder() : BindingRegistrar
- Get the model binding registrar instance.
- extractAuthParameters() : array<string|int, mixed>
- Extract the parameters from the given pattern and channel.
- extractChannelKeys() : array<string|int, mixed>
- Extract the channel keys from the incoming channel name.
- formatChannels() : array<string|int, mixed>
- Format the channel array into an array of strings.
- isImplicitlyBindable() : bool
- Determine if a given key and parameter is implicitly bindable.
- resolveBinding() : mixed
- Resolve the given parameter binding.
- resolveExplicitBindingIfPossible() : mixed
- Resolve an explicit parameter binding if applicable.
- resolveImplicitBindingIfPossible() : mixed
- Resolve an implicit parameter binding if applicable.
- verifyUserCanAccessChannel() : mixed
- Authenticate the incoming request for a given channel.
Properties
$bindingRegistrar
The binding registrar instance.
protected
BindingRegistrar
$bindingRegistrar
$channels
The registered channel authenticators.
protected
array<string|int, mixed>
$channels
= []
Methods
channel()
Register a channel authenticator.
public
channel(string $channel, callable $callback) : $this
Parameters
- $channel : string
- $callback : callable
Return values
$this —binder()
Get the model binding registrar instance.
protected
binder() : BindingRegistrar
Return values
BindingRegistrar —extractAuthParameters()
Extract the parameters from the given pattern and channel.
protected
extractAuthParameters(string $pattern, string $channel, callable $callback) : array<string|int, mixed>
Parameters
- $pattern : string
- $channel : string
- $callback : callable
Return values
array<string|int, mixed> —extractChannelKeys()
Extract the channel keys from the incoming channel name.
protected
extractChannelKeys(string $pattern, string $channel) : array<string|int, mixed>
Parameters
- $pattern : string
- $channel : string
Return values
array<string|int, mixed> —formatChannels()
Format the channel array into an array of strings.
protected
formatChannels(array<string|int, mixed> $channels) : array<string|int, mixed>
Parameters
- $channels : array<string|int, mixed>
Return values
array<string|int, mixed> —isImplicitlyBindable()
Determine if a given key and parameter is implicitly bindable.
protected
isImplicitlyBindable(string $key, ReflectionParameter $parameter) : bool
Parameters
- $key : string
- $parameter : ReflectionParameter
Return values
bool —resolveBinding()
Resolve the given parameter binding.
protected
resolveBinding(string $key, string $value, array<string|int, mixed> $callbackParameters) : mixed
Parameters
- $key : string
- $value : string
- $callbackParameters : array<string|int, mixed>
Return values
mixed —resolveExplicitBindingIfPossible()
Resolve an explicit parameter binding if applicable.
protected
resolveExplicitBindingIfPossible(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed
Return values
mixed —resolveImplicitBindingIfPossible()
Resolve an implicit parameter binding if applicable.
protected
resolveImplicitBindingIfPossible(string $key, mixed $value, array<string|int, mixed> $callbackParameters) : mixed
Parameters
- $key : string
- $value : mixed
- $callbackParameters : array<string|int, mixed>
Tags
Return values
mixed —verifyUserCanAccessChannel()
Authenticate the incoming request for a given channel.
protected
verifyUserCanAccessChannel(Request $request, string $channel) : mixed
Parameters
- $request : Request
- $channel : string