Skip to content
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

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open

broadcast package #42

wants to merge 34 commits into from

Conversation

bluehaha
Copy link

No description provided.

{
$this->payload = $payload instanceof Arrayable
? $payload->toArray()
: collect($payload)->map(
Copy link
Member

@albertcht albertcht Feb 3, 2025

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')
Copy link
Member

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']];
Copy link
Member

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) {
Copy link
Member

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),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bind BroadcastManager directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants