LogBroadcaster
class LogBroadcaster extends Broadcaster (View source)
Properties
protected array | $channels | The registered channel authenticators. | from Broadcaster |
protected BindingRegistrar | $bindingRegistrar | The binding registrar instance. | from Broadcaster |
protected LoggerInterface | $logger | The logger implementation. |
Methods
$this | channel(string $channel, callable|string $callback) Register a channel authenticator. | from Broadcaster |
mixed | verifyUserCanAccessChannel(Request $request, string $channel) Authenticate the incoming request for a given channel. | from Broadcaster |
array | extractAuthParameters(string $pattern, string $channel, callable|string $callback) Extract the parameters from the given pattern and channel. | from Broadcaster |
ReflectionParameter[] | extractParameters(callable|string $callback) Extracts the parameters out of what the user passed to handle the channel authentication. | from Broadcaster |
ReflectionParameter[] | extractParametersFromClass(string $callback) Extracts the parameters out of a class channel's "join" method. | from Broadcaster |
array | extractChannelKeys(string $pattern, string $channel) Extract the channel keys from the incoming channel name. | from Broadcaster |
mixed | resolveBinding(string $key, string $value, array $callbackParameters) Resolve the given parameter binding. | from Broadcaster |
mixed | resolveExplicitBindingIfPossible(string $key, mixed $value) Resolve an explicit parameter binding if applicable. | from Broadcaster |
mixed | resolveImplicitBindingIfPossible(string $key, mixed $value, array $callbackParameters) Resolve an implicit parameter binding if applicable. | from Broadcaster |
bool | isImplicitlyBindable(string $key, ReflectionParameter $parameter) Determine if a given key and parameter is implicitly bindable. | from Broadcaster |
array | formatChannels(array $channels) Format the channel array into an array of strings. | from Broadcaster |
BindingRegistrar | binder() Get the model binding registrar instance. | from Broadcaster |
callable|Closure | normalizeChannelHandlerToCallable(mixed $callback) Normalize the given callback into a callable. | from Broadcaster |
void | __construct(LoggerInterface $logger) Create a new broadcaster instance. | |
mixed | auth(Request $request) Authenticate the incoming request for a given channel. | |
mixed | validAuthenticationResponse(Request $request, mixed $result) Return the valid authentication response. | |
void | broadcast(array $channels, string $event, array $payload = []) Broadcast the given event. |
Details
$this channel(string $channel, callable|string $callback)
Register a channel authenticator.
protected mixed verifyUserCanAccessChannel(Request $request, string $channel)
Authenticate the incoming request for a given channel.
protected array extractAuthParameters(string $pattern, string $channel, callable|string $callback)
Extract the parameters from the given pattern and channel.
protected ReflectionParameter[] extractParameters(callable|string $callback)
Extracts the parameters out of what the user passed to handle the channel authentication.
protected ReflectionParameter[] extractParametersFromClass(string $callback)
Extracts the parameters out of a class channel's "join" method.
protected array extractChannelKeys(string $pattern, string $channel)
Extract the channel keys from the incoming channel name.
protected mixed resolveBinding(string $key, string $value, array $callbackParameters)
Resolve the given parameter binding.
protected mixed resolveExplicitBindingIfPossible(string $key, mixed $value)
Resolve an explicit parameter binding if applicable.
protected mixed resolveImplicitBindingIfPossible(string $key, mixed $value, array $callbackParameters)
Resolve an implicit parameter binding if applicable.
protected bool isImplicitlyBindable(string $key, ReflectionParameter $parameter)
Determine if a given key and parameter is implicitly bindable.
protected array formatChannels(array $channels)
Format the channel array into an array of strings.
protected BindingRegistrar binder()
Get the model binding registrar instance.
protected callable|Closure normalizeChannelHandlerToCallable(mixed $callback)
Normalize the given callback into a callable.
void __construct(LoggerInterface $logger)
Create a new broadcaster instance.
mixed auth(Request $request)
Authenticate the incoming request for a given channel.
mixed validAuthenticationResponse(Request $request, mixed $result)
Return the valid authentication response.
void broadcast(array $channels, string $event, array $payload = [])
Broadcast the given event.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Broadcasting/Broadcasters/LogBroadcaster.html