Skip to content

Commit 9e84e5f

Browse files
authored
Update cli.md
1 parent 7f52544 commit 9e84e5f

File tree

1 file changed

+4
-4
lines changed
  • docs/development/extension-hooks/global

1 file changed

+4
-4
lines changed

docs/development/extension-hooks/global/cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ lang: php
1313

1414
# CLI Extension Hooks
1515

16-
### `cli_boot($cli, $commandClassName, $commandObject)`
16+
### `cli_boot($cli)`
1717

1818
| Parameter | Type | Description |
1919
| ------------------ | -------- | ------------------------------------------------------------------------ |
2020
| \$cli | `Object` | Instance of CLI currently running |
2121
| Returns | `Void` | |
2222

23-
Run tasks on every CLI request. Allows running the code before certain CLI command.
23+
Run tasks before every CLI request.
2424

2525
How it's called:
2626

@@ -29,7 +29,7 @@ How it's called:
2929
$this->complete('');
3030
}
3131

32-
### `cli_before_handle($cli, $command, $commandClass)`
32+
### `cli_before_handle($cli, $commandClass, $command)`
3333

3434
| Parameter | Type | Description |
3535
| -------------- | -------- | ------------------------------------------------------------------------ |
@@ -42,7 +42,7 @@ Run tasks right before CLI command is excuted. Allows modification of command cl
4242

4343
How it's called:
4444

45-
$command = ee()->extensions->call('cli_before_handle', $this, $command, $commandClass);
45+
$command = ee()->extensions->call('cli_before_handle', $this, $commandClass, $command);
4646
if (ee()->extensions->end_script === true) {
4747
$this->complete('');
4848
}

0 commit comments

Comments
 (0)