@@ 35-53 (lines=19) @@ | ||
32 | /** |
|
33 | * {@inheritdoc} |
|
34 | */ |
|
35 | protected function configure(): void |
|
36 | { |
|
37 | $this |
|
38 | ->setDescription('Disconnect user by ID') |
|
39 | ->setDefinition( |
|
40 | new InputDefinition([ |
|
41 | new InputArgument('user', InputArgument::REQUIRED, 'User ID'), |
|
42 | ]) |
|
43 | ) |
|
44 | ->setHelp( |
|
45 | <<<'HELP' |
|
46 | The <info>%command.name%</info> command allows to disconnect user by ID: |
|
47 | ||
48 | <info>%command.full_name%</info> <comment>user123</comment> |
|
49 | ||
50 | Read more at https://centrifugal.github.io/centrifugo/server/http_api/#disconnect |
|
51 | HELP |
|
52 | ) |
|
53 | ; |
|
54 | } |
|
55 | ||
56 | /** |
@@ 48-66 (lines=19) @@ | ||
45 | /** |
|
46 | * {@inheritdoc} |
|
47 | */ |
|
48 | protected function configure(): void |
|
49 | { |
|
50 | $this |
|
51 | ->setDescription('Get channel history information (list of last messages published into channel)') |
|
52 | ->setDefinition( |
|
53 | new InputDefinition([ |
|
54 | new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'), |
|
55 | ]) |
|
56 | ) |
|
57 | ->setHelp( |
|
58 | <<<'HELP' |
|
59 | The <info>%command.name%</info> command allows to get channel history information (list of last messages published into channel): |
|
60 | ||
61 | <info>%command.full_name%</info> <comment>channelAbc</comment> |
|
62 | ||
63 | Read more at https://centrifugal.github.io/centrifugo/server/http_api/#history |
|
64 | HELP |
|
65 | ) |
|
66 | ; |
|
67 | } |
|
68 | ||
69 | /** |
@@ 48-64 (lines=17) @@ | ||
45 | /** |
|
46 | * {@inheritdoc} |
|
47 | */ |
|
48 | protected function configure(): void |
|
49 | { |
|
50 | $this |
|
51 | ->setDescription('Remove history for channel') |
|
52 | ->setDefinition( |
|
53 | new InputDefinition([ |
|
54 | new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'), |
|
55 | ]) |
|
56 | ) |
|
57 | ->setHelp( |
|
58 | <<<'HELP' |
|
59 | The <info>%command.name%</info> command allows to remove history for channel: |
|
60 | ||
61 | <info>%command.full_name%</info> <comment>channelAbc</comment> |
|
62 | HELP |
|
63 | ) |
|
64 | ; |
|
65 | } |
|
66 | ||
67 | /** |
@@ 48-66 (lines=19) @@ | ||
45 | /** |
|
46 | * {@inheritdoc} |
|
47 | */ |
|
48 | protected function configure(): void |
|
49 | { |
|
50 | $this |
|
51 | ->setDescription('Get channel presence information') |
|
52 | ->setDefinition( |
|
53 | new InputDefinition([ |
|
54 | new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'), |
|
55 | ]) |
|
56 | ) |
|
57 | ->setHelp( |
|
58 | <<<'HELP' |
|
59 | The <info>%command.name%</info> command allows to get channel presence information: |
|
60 | ||
61 | <info>%command.full_name%</info> <comment>channelAbc</comment> |
|
62 | ||
63 | Read more at https://centrifugal.github.io/centrifugo/server/http_api/#presence |
|
64 | HELP |
|
65 | ) |
|
66 | ; |
|
67 | } |
|
68 | ||
69 | /** |
@@ 48-66 (lines=19) @@ | ||
45 | /** |
|
46 | * {@inheritdoc} |
|
47 | */ |
|
48 | protected function configure(): void |
|
49 | { |
|
50 | $this |
|
51 | ->setDescription('Get short channel presence information') |
|
52 | ->setDefinition( |
|
53 | new InputDefinition([ |
|
54 | new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'), |
|
55 | ]) |
|
56 | ) |
|
57 | ->setHelp( |
|
58 | <<<'HELP' |
|
59 | The <info>%command.name%</info> command allows to get short channel presence information: |
|
60 | ||
61 | <info>%command.full_name%</info> <comment>channelAbc</comment> |
|
62 | ||
63 | Read more at https://centrifugal.github.io/centrifugo/server/http_api/#presence_stats |
|
64 | HELP |
|
65 | ) |
|
66 | ; |
|
67 | } |
|
68 | ||
69 | /** |