-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broadcast package #42
base: master
Are you sure you want to change the base?
Conversation
{ | ||
$this->payload = $payload instanceof Arrayable | ||
? $payload->toArray() | ||
: collect($payload)->map( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add namespace for collect
helper function
} | ||
} | ||
|
||
$this->app->get('queue') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid using alias in containers for compatibility of Hyperf
*/ | ||
public function routes(?array $attributes = null): void | ||
{ | ||
$attributes = $attributes ?: ['middleware' => ['web']]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no middleware group in Hyperf
*/ | ||
protected function buildAblyMessage(string $event, array $payload = []): AblyMessage | ||
{ | ||
return tap(new AblyMessage(), function ($message) use ($event, $payload) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add namespace for tap
helper function
{ | ||
return [ | ||
'dependencies' => [ | ||
Factory::class => fn (ContainerInterface $container) => new BroadcastManager($container), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bind BroadcastManager
directly
No description provided.