Skip to content

Commit d8083e6

Browse files
committed
wip
1 parent ce091a5 commit d8083e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Kernel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public static function attach(array $commands): self
4242
{
4343
$application = new Application('Narrative', '@dev');
4444

45+
foreach ($application->all() as $command) {
46+
$command->setHidden(true);
47+
}
48+
4549
$application->addCommands($commands);
4650

4751
return new self($application);
@@ -54,6 +58,6 @@ public static function attach(array $commands): self
5458
*/
5559
public function dispatch(InputInterface $inputInterface): void
5660
{
57-
$this->application->run($inputInterface);
61+
$this->application->$this->application->run($inputInterface);
5862
}
5963
}

0 commit comments

Comments
 (0)