Laravel\SparkInstaller\NewCommand::execute PHP Method

execute() public method

Execute the command.
public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return void
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $this->input = $input;
        $this->output = new SymfonyStyle($input, $output);
        $this->path = getcwd() . '/' . $input->getArgument('name');
        $installers = [Installation\CreateLaravelProject::class, Installation\DownloadSpark::class, Installation\UpdateComposerFile::class, Installation\ComposerUpdate::class, Installation\AddCoreProviderToConfiguration::class, Installation\RunSparkInstall::class, Installation\AddAppProviderToConfiguration::class, Installation\RunNpmInstall::class, Installation\RunGulp::class];
        foreach ($installers as $installer) {
            (new $installer($this, $input->getArgument('name')))->install();
        }
    }