Skip to content

Commit

Permalink
Bakery setup wizard for SMTP config + separate SMTP setup in it's own…
Browse files Browse the repository at this point in the history
… command (#874)
  • Loading branch information
lcharette committed May 12, 2018
1 parent b97cdd8 commit c150bb9
Show file tree
Hide file tree
Showing 6 changed files with 612 additions and 223 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v4.1.18
- Bakery setup wizard for SMTP config + separate SMTP setup in it's own command (#874)

## v4.1.17-alpha
- Lock `gulp-uf-bundle-assets` at v2.28.0 until userfrosting/gulp-uf-bundle-assets#5 is resolved (see #859)
Expand Down
223 changes: 0 additions & 223 deletions app/system/Bakery/Command/Setup.php

This file was deleted.

46 changes: 46 additions & 0 deletions app/system/Bakery/Command/SetupCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
/**
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
namespace UserFrosting\System\Bakery\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use UserFrosting\System\Bakery\BaseCommand;

/**
* Setup wizard CLI Tools.
* Helper command to setup .env file
*
* @author Alex Weissman (https://alexanderweissman.com)
*/
class SetupCommand extends BaseCommand
{
/**
* {@inheritDoc}
*/
protected function configure()
{
$this->setName("setup")
->setDescription("UserFrosting Configuration Wizard")
->setHelp("This command combine the <info>setup:env</info>, <info>setup:db</info> and <info>setup:smtp</info> commands.");
}

/**
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$command = $this->getApplication()->find('setup:db');
$command->run($input, $output);

$command = $this->getApplication()->find('setup:smtp');
$command->run($input, $output);

$command = $this->getApplication()->find('setup:env');
$command->run($input, $output);
}
}
Loading

0 comments on commit c150bb9

Please sign in to comment.