@@ -16,6 +16,8 @@ discard block |
||
16 | 16 | |
17 | 17 | use think\App; |
18 | 18 | use think\Container; |
19 | +use think\Response; |
|
20 | +use think\Validate; |
|
19 | 21 | use think\exception\HttpException; |
20 | 22 | use think\exception\HttpResponseException; |
21 | 23 | use think\facade\Cache; |
@@ -28,7 +30,6 @@ discard block |
||
28 | 30 | use think\facade\Request; |
29 | 31 | use think\facade\Route; |
30 | 32 | use think\facade\Session; |
31 | -use think\Response; |
|
32 | 33 | use think\response\File; |
33 | 34 | use think\response\Json; |
34 | 35 | use think\response\Jsonp; |
@@ -36,7 +37,6 @@ discard block |
||
36 | 37 | use think\response\View; |
37 | 38 | use think\response\Xml; |
38 | 39 | use think\route\Url as UrlBuild; |
39 | -use think\Validate; |
|
40 | 40 | |
41 | 41 | if (!function_exists('abort')) { |
42 | 42 | /** |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use DateInterval; |
17 | 17 | use DateTime; |
18 | 18 | use DateTimeInterface; |
19 | -use Exception; |
|
20 | 19 | use Psr\SimpleCache\CacheInterface; |
21 | 20 | use think\Container; |
22 | 21 | use think\contract\CacheHandlerInterface; |
@@ -14,10 +14,16 @@ discard block |
||
14 | 14 | use InvalidArgumentException; |
15 | 15 | use LogicException; |
16 | 16 | use think\console\Command; |
17 | +use think\console\Input; |
|
18 | +use think\console\Output; |
|
17 | 19 | use think\console\command\Clear; |
18 | -use think\console\command\Help; |
|
19 | 20 | use think\console\command\Help as HelpCommand; |
20 | 21 | use think\console\command\Lists; |
22 | +use think\console\command\RouteList; |
|
23 | +use think\console\command\RunServer; |
|
24 | +use think\console\command\ServiceDiscover; |
|
25 | +use think\console\command\VendorPublish; |
|
26 | +use think\console\command\Version; |
|
21 | 27 | use think\console\command\make\Command as MakeCommand; |
22 | 28 | use think\console\command\make\Controller; |
23 | 29 | use think\console\command\make\Event; |
@@ -29,16 +35,9 @@ discard block |
||
29 | 35 | use think\console\command\make\Validate; |
30 | 36 | use think\console\command\optimize\Route; |
31 | 37 | use think\console\command\optimize\Schema; |
32 | -use think\console\command\RouteList; |
|
33 | -use think\console\command\RunServer; |
|
34 | -use think\console\command\ServiceDiscover; |
|
35 | -use think\console\command\VendorPublish; |
|
36 | -use think\console\command\Version; |
|
37 | -use think\console\Input; |
|
38 | 38 | use think\console\input\Argument as InputArgument; |
39 | 39 | use think\console\input\Definition as InputDefinition; |
40 | 40 | use think\console\input\Option as InputOption; |
41 | -use think\console\Output; |
|
42 | 41 | use think\console\output\driver\Buffer; |
43 | 42 | |
44 | 43 | /** |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use think\console\Command; |
15 | 15 | use think\console\Input; |
16 | -use think\console\input\Argument; |
|
17 | 16 | use think\console\Output; |
17 | +use think\console\input\Argument; |
|
18 | 18 | |
19 | 19 | abstract class Make extends Command |
20 | 20 | { |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | use think\console\Command; |
14 | 14 | use think\console\Input; |
15 | +use think\console\Output; |
|
15 | 16 | use think\console\input\Argument; |
16 | 17 | use think\console\input\Option; |
17 | -use think\console\Output; |
|
18 | 18 | |
19 | 19 | class Schema extends Command |
20 | 20 | { |
@@ -12,10 +12,10 @@ |
||
12 | 12 | |
13 | 13 | use think\console\Command; |
14 | 14 | use think\console\Input; |
15 | -use think\console\input\Argument; |
|
16 | -use think\console\input\Option; |
|
17 | 15 | use think\console\Output; |
18 | 16 | use think\console\Table; |
17 | +use think\console\input\Argument; |
|
18 | +use think\console\input\Option; |
|
19 | 19 | use think\event\RouteLoaded; |
20 | 20 | |
21 | 21 | class RouteList extends Command |
@@ -13,13 +13,13 @@ |
||
13 | 13 | namespace think\exception; |
14 | 14 | |
15 | 15 | use Exception; |
16 | +use Throwable; |
|
16 | 17 | use think\App; |
18 | +use think\Request; |
|
19 | +use think\Response; |
|
17 | 20 | use think\console\Output; |
18 | 21 | use think\db\exception\DataNotFoundException; |
19 | 22 | use think\db\exception\ModelNotFoundException; |
20 | -use think\Request; |
|
21 | -use think\Response; |
|
22 | -use Throwable; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * 系统异常处理类 |
@@ -12,8 +12,8 @@ |
||
12 | 12 | |
13 | 13 | namespace think\file; |
14 | 14 | |
15 | -use think\exception\FileException; |
|
16 | 15 | use think\File; |
16 | +use think\exception\FileException; |
|
17 | 17 | |
18 | 18 | class UploadedFile extends File |
19 | 19 | { |
@@ -12,11 +12,11 @@ |
||
12 | 12 | |
13 | 13 | namespace think; |
14 | 14 | |
15 | +use Throwable; |
|
15 | 16 | use think\event\HttpEnd; |
16 | 17 | use think\event\HttpRun; |
17 | 18 | use think\event\RouteLoaded; |
18 | 19 | use think\exception\Handle; |
19 | -use Throwable; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Web应用管理类 |