Skip to content

Commit

Permalink
Merge pull request #7582 from kenjis/docs-cli_library
Browse files Browse the repository at this point in the history
docs: update sample code in cli_library
  • Loading branch information
kenjis authored Jun 18, 2023
2 parents d45bd46 + 92e6fa3 commit f6ed695
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions user_guide_src/source/cli/cli_library/001.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<?php

namespace App\Controllers;
namespace App\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
use CodeIgniter\Controller;

class MyController extends Controller
class MyCommand extends BaseCommand
{
// ...

public function run(array $params)
{
// ...
}
}

0 comments on commit f6ed695

Please sign in to comment.