Skip to content

Commit 315c5ba

Browse files
authored
Add CLI namespace to example
Without CLI\CLI the demo command `run` listed below will fail with: Class 'App\Commands\CLI' not found. Adding the `use` so others don't run into this issue following the guide
1 parent 12b6456 commit 315c5ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

user_guide_src/source/cli/cli_commands.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ should contain the following code::
8383
<?php namespace App\Commands;
8484

8585
use CodeIgniter\CLI\BaseCommand;
86+
use CodeIgniter\CLI\CLI;
8687

8788
class AppInfo extends BaseCommand
8889
{

0 commit comments

Comments
 (0)