Skip to content

Commit 7259524

Browse files
committed
refactor: move some abstract class to Concern dir
1 parent bc61390 commit 7259524

15 files changed

+39
-25
lines changed

src/AbstractApplication.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
use Inhere\Console\Component\ErrorHandler;
1414
use Inhere\Console\Component\Router;
1515
use Inhere\Console\Component\Formatter\Title;
16-
use Inhere\Console\Concern\InputOutputAwareTrait;
17-
use Inhere\Console\Concern\SimpleEventAwareTrait;
16+
use Inhere\Console\Decorate\SimpleEventAwareTrait;
1817
use Inhere\Console\Contract\ApplicationInterface;
1918
use Inhere\Console\Contract\ErrorHandlerInterface;
19+
use Inhere\Console\Decorate\InputOutputAwareTrait;
2020
use Inhere\Console\Decorate\ApplicationHelpTrait;
2121
use Inhere\Console\Decorate\StyledOutputAwareTrait;
2222
use Inhere\Console\IO\Input;
@@ -90,7 +90,7 @@ abstract class AbstractApplication implements ApplicationInterface
9090
*/
9191
protected string $commandName = '';
9292

93-
/**
93+
/*
9494
* @var string Command delimiter char. e.g dev:serve
9595
*/
9696

src/Component/Interact/AbstractSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Inhere\Console\Component\Interact;
1111

12-
use Inhere\Console\Component\InteractiveHandle;
12+
use Inhere\Console\Concern\InteractiveHandle;
1313

1414
/**
1515
* class AbstractSelect

src/Component/Interact/Confirm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Inhere\Console\Component\Interact;
1111

12-
use Inhere\Console\Component\InteractiveHandle;
12+
use Inhere\Console\Concern\InteractiveHandle;
1313
use Inhere\Console\Console;
1414
use Inhere\Console\Util\Show;
1515
use function stripos;

src/Component/Interact/IShell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use Closure;
1313
use Inhere\Console\Component\Formatter\Title;
14-
use Inhere\Console\Component\InteractiveHandle;
14+
use Inhere\Console\Concern\InteractiveHandle;
1515
use Inhere\Console\Console;
1616
use Inhere\Console\Util\Interact;
1717
use Inhere\Console\Util\Show;

src/Component/Interact/LimitedAsk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Inhere\Console\Component\Interact;
1111

1212
use Closure;
13-
use Inhere\Console\Component\InteractiveHandle;
13+
use Inhere\Console\Concern\InteractiveHandle;
1414
use Inhere\Console\Console;
1515
use Inhere\Console\Util\Show;
1616
use function sprintf;

src/Component/Interact/Password.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Inhere\Console\Component\Interact;
1111

12-
use Inhere\Console\Component\InteractiveHandle;
12+
use Inhere\Console\Concern\InteractiveHandle;
1313
use RuntimeException;
1414
use Toolkit\Sys\Sys;
1515
use Toolkit\Sys\Util\ShellUtil;

src/Component/Interact/Question.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Inhere\Console\Component\Interact;
1111

1212
use Closure;
13-
use Inhere\Console\Component\InteractiveHandle;
13+
use Inhere\Console\Concern\InteractiveHandle;
1414
use Inhere\Console\Console;
1515
use Inhere\Console\Util\Show;
1616
use function trim;

src/Component/Interact/Terminal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Inhere\Console\Component\Interact;
1111

12-
use Inhere\Console\Component\InteractiveHandle;
12+
use Inhere\Console\Concern\InteractiveHandle;
1313

1414
/**
1515
* Class Terminal

src/Component/Symbol/GitEmoji.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Inhere\Console\Component\Symbol;
4+
5+
/**
6+
* class GitEmoji
7+
*
8+
* @author inhere
9+
*/
10+
class GitEmoji
11+
{
12+
public static function search(string $key): array
13+
{
14+
return [];
15+
}
16+
}

src/Component/Interact/AbstractQuestion.php renamed to src/Concern/AbstractQuestion.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @license https://github.com/inhere/php-console/blob/master/LICENSE
88
*/
99

10-
namespace Inhere\Console\Component\Interact;
10+
namespace Inhere\Console\Concern;
1111

12-
use Inhere\Console\Component\InteractiveHandle;
1312
use Toolkit\Stdlib\Str\StrValue;
1413

1514
/**

0 commit comments

Comments
 (0)