Skip to content

Commit f6ed695

Browse files
authored
Merge pull request #7582 from kenjis/docs-cli_library
docs: update sample code in cli_library
2 parents d45bd46 + 92e6fa3 commit f6ed695

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)