Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function __invoke(string $name, InputInterface $input, OutputInterface $output) |
||
18 | { |
||
19 | $output->writeln('<info># Publishing stubs...</info>'); |
||
20 | |||
21 | $directory = getcwd() . '/' . $name; |
||
22 | |||
23 | $commands = [ |
||
24 | 'php artisan stub:publish', |
||
25 | ]; |
||
26 | |||
27 | $runner = new CommandRunner($output, $directory); |
||
28 | $isSuccessful = $runner->run($commands); |
||
29 | |||
30 | if ($isSuccessful) { |
||
31 | $output->writeln('<comment>Stubs published.</comment>'); |
||
32 | } |
||
35 |