Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Sep 9, 2023
1 parent 0df0067 commit 7dc25f1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Console\Concerns\InteractsWithIO;
use Illuminate\Console\Concerns\PromptsForMissingInput;
use Illuminate\Console\OutputStyle;
use Illuminate\Console\View\Components\Factory;
use Orchestra\Canvas\Core\Presets\Preset;
use Symfony\Component\Console\Command\Command as SymfonyConsole;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -37,6 +38,18 @@ public function __construct(Preset $preset)

$this->specifyParameters();
}
/**
* Initializes the command after the input has been bound and before the input
* is validated.
*
* @return void
*
* @phpstan-param \Symfony\Component\Console\Output\OutputInterface&\Illuminate\Console\OutputStyle $output
*/
protected function initialize(InputInterface $input, OutputInterface $output)
{
$this->components = new Factory($output);
}

/**
* Run the console command.
Expand Down

0 comments on commit 7dc25f1

Please sign in to comment.