-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bakery setup wizard for SMTP config + separate SMTP setup in it's own…
… command (#874)
- Loading branch information
Showing
6 changed files
with
612 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.