Skip to content

Commit 92e6fa3

Browse files
committed
docs: update sample code
Spark command is recommended.
1 parent eea5087 commit 92e6fa3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • user_guide_src/source/cli/cli_library
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<?php
22

3-
namespace App\Controllers;
3+
namespace App\Commands;
44

5+
use CodeIgniter\CLI\BaseCommand;
56
use CodeIgniter\CLI\CLI;
6-
use CodeIgniter\Controller;
77

8-
class MyController extends Controller
8+
class MyCommand extends BaseCommand
99
{
1010
// ...
11+
12+
public function run(array $params)
13+
{
14+
// ...
15+
}
1116
}

0 commit comments

Comments
 (0)