We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea5087 commit 92e6fa3Copy full SHA for 92e6fa3
1 file changed
user_guide_src/source/cli/cli_library/001.php
@@ -1,11 +1,16 @@
1
<?php
2
3
-namespace App\Controllers;
+namespace App\Commands;
4
5
+use CodeIgniter\CLI\BaseCommand;
6
use CodeIgniter\CLI\CLI;
-use CodeIgniter\Controller;
7
8
-class MyController extends Controller
+class MyCommand extends BaseCommand
9
{
10
// ...
11
+
12
+ public function run(array $params)
13
+ {
14
+ // ...
15
+ }
16
}
0 commit comments