1616use DragonCode \Support \Facades \Helpers \Arr ;
1717use DragonCode \Support \Facades \Helpers \Str ;
1818use DragonCode \Support \Filesystem \File ;
19- use Illuminate \Console \OutputStyle ;
2019use Illuminate \Contracts \Events \Dispatcher ;
2120use Symfony \Component \Console \Input \InputInterface ;
21+ use Symfony \Component \Console \Output \OutputInterface ;
2222
2323abstract class Processor
2424{
2525 use Artisan;
2626
27- abstract public function handle (): void ;
28-
2927 public function __construct (
30- protected Options $ options ,
31- protected InputInterface $ input ,
32- protected OutputStyle $ output ,
33- protected Config $ config ,
28+ protected Options $ options ,
29+ protected InputInterface $ input ,
30+ protected OutputInterface $ output ,
31+ protected Config $ config ,
3432 protected ActionRepository $ repository ,
35- protected Git $ git ,
36- protected File $ file ,
37- protected Migrator $ migrator ,
38- protected Notification $ notification ,
39- protected Dispatcher $ events ,
40- protected Sorter $ sorter
33+ protected Git $ git ,
34+ protected File $ file ,
35+ protected Migrator $ migrator ,
36+ protected Notification $ notification ,
37+ protected Dispatcher $ events ,
38+ protected Sorter $ sorter
4139 ) {
4240 $ this ->notification ->setOutput ($ this ->output );
4341 $ this ->repository ->setConnection ($ this ->options ->connection );
4442 $ this ->migrator ->setConnection ($ this ->options ->connection )->setOutput ($ this ->output );
4543 }
4644
45+ abstract public function handle (): void ;
46+
4747 protected function getFiles (string $ path , ?Closure $ filter = null ): array
4848 {
4949 $ file = Str::finish ($ path , '.php ' );
@@ -57,7 +57,7 @@ protected function getFiles(string $path, ?Closure $filter = null): array
5757
5858 protected function runCommand (string $ command , array $ options = []): void
5959 {
60- $ this ->artisan ($ command , array_filter ($ options ));
60+ $ this ->artisan ($ command , array_filter ($ options ), $ this -> output );
6161 }
6262
6363 protected function tableNotFound (): bool
0 commit comments