Skip to content

Commit da86222

Browse files
committed
rename some dirs
1 parent 52d63a0 commit da86222

File tree

16 files changed

+46
-56
lines changed

16 files changed

+46
-56
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ $app->command(TestCommand::class);
229229

230230
```php
231231
// 独立命令
232-
$app->registerCommands('App\\Console\\Commands', dirname(__DIR__) . '/Commands');
232+
$app->registerCommands('App\\Console\\Command', dirname(__DIR__) . '/Commands');
233233
// 命令组
234-
$app->registerGroups('App\\Console\\Controllers', dirname(__DIR__) . '/Controllers');
234+
$app->registerGroups('App\\Console\\Controller', dirname(__DIR__) . '/Controllers');
235235
```
236236

237237
### 一些说明

examples/Commands/CorCommand.php renamed to examples/Command/CorCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 17:47
77
*/
88

9-
namespace Inhere\Console\Examples\Commands;
9+
namespace Inhere\Console\Examples\Command;
1010

1111
use Inhere\Console\Command;
1212
use Inhere\Console\IO\Input;
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Class CorCommand
18-
* @package Inhere\Console\Examples\Commands
18+
* @package Inhere\Console\Examples\Command
1919
*/
2020
class CorCommand extends Command
2121
{

examples/Commands/DemoCommand.php renamed to examples/Command/DemoCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* Time: 18:58
77
*/
88

9-
namespace Inhere\Console\Examples\Commands;
9+
namespace Inhere\Console\Examples\Command;
1010

1111
use Inhere\Console\Command;
1212
use Inhere\Console\IO\Input;
1313
use Inhere\Console\IO\Output;
1414

1515
/**
1616
* Class DemoCommand
17-
* @package Inhere\Console\Examples\Commands
17+
* @package Inhere\Console\Examples\Command
1818
*/
1919
class DemoCommand extends Command
2020
{

examples/Commands/TestCommand.php renamed to examples/Command/TestCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* Time: 18:58
77
*/
88

9-
namespace Inhere\Console\Examples\Commands;
9+
namespace Inhere\Console\Examples\Command;
1010

1111
use Inhere\Console\Command;
1212
use Inhere\Console\IO\Output;
1313

1414
/**
1515
* Class Test
16-
* @package Inhere\Console\Examples\Commands
16+
* @package Inhere\Console\Examples\Command
1717
*/
1818
class TestCommand extends Command
1919
{

examples/Controllers/HomeController.php renamed to examples/Controller/HomeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Inhere\Console\Examples\Controllers;
3+
namespace Inhere\Console\Examples\Controller;
44

55
use Toolkit\Cli\Cli;
66
use Inhere\Console\Component\Symbol\ArtFont;
@@ -15,7 +15,7 @@
1515
/**
1616
* default command controller. there are some command usage examples(1)
1717
* Class HomeController
18-
* @package Inhere\Console\Examples\Controllers
18+
* @package Inhere\Console\Examples\Controller
1919
*/
2020
class HomeController extends Controller
2121
{

examples/Controllers/InteractController.php renamed to examples/Controller/InteractController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 14:27
77
*/
88

9-
namespace Inhere\Console\Examples\Controllers;
9+
namespace Inhere\Console\Examples\Controller;
1010

1111
use Inhere\Console\Controller;
1212
use Inhere\Console\Util\Interact;
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Class InteractController
18-
* @package Inhere\Console\Examples\Controllers
18+
* @package Inhere\Console\Examples\Controller
1919
*/
2020
class InteractController extends Controller
2121
{

examples/Controllers/ProcessController.php renamed to examples/Controller/ProcessController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* Time: 11:44
77
*/
88

9-
namespace Inhere\Console\Examples\Controllers;
9+
namespace Inhere\Console\Examples\Controller;
1010

1111
use Inhere\Console\Controller;
1212
use Toolkit\Sys\ProcessUtil;
1313
use Toolkit\Sys\Sys;
1414

1515
/**
1616
* Class ProcessController
17-
* @package Inhere\Console\Examples\Controllers
17+
* @package Inhere\Console\Examples\Controller
1818
*/
1919
class ProcessController extends Controller
2020
{

examples/Controllers/ShowController.php renamed to examples/Controller/ShowController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 14:27
77
*/
88

9-
namespace Inhere\Console\Examples\Controllers;
9+
namespace Inhere\Console\Examples\Controller;
1010

1111
use Inhere\Console\Component\Symbol\Char;
1212
use Inhere\Console\Component\Symbol\Emoji;
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* Class ShowController
21-
* @package Inhere\Console\Examples\Controllers
21+
* @package Inhere\Console\Examples\Controller
2222
*/
2323
class ShowController extends Controller
2424
{

examples/alone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* only run a controller.
55
*/
66

7-
use Inhere\Console\Examples\Controllers\HomeController;
7+
use Inhere\Console\Examples\Controller\HomeController;
88

99
define('BASE_PATH', dirname(__DIR__));
1010

examples/alone-app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* only run a controller.
55
*/
66

7-
use Inhere\Console\Examples\Controllers\HomeController;
7+
use Inhere\Console\Examples\Controller\HomeController;
88

99
define('BASE_PATH', dirname(__DIR__));
1010

0 commit comments

Comments
 (0)