Skip to content

Commit 3053e96

Browse files
committed
Moved the ACSII Title to the Bake command
1 parent 3a29d44 commit 3053e96

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

app/system/Bakery/Command/Bake.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ class Bake extends BaseCommand
2828
*/
2929
protected $buildPath;
3030

31+
/**
32+
* @var String $ufArt The UserFrosting ASCII art.
33+
*/
34+
public $title = "
35+
_ _ ______ _ _
36+
| | | | | ___| | | (_)
37+
| | | |___ ___ _ __| |_ _ __ ___ ___| |_ _ _ __ __ _
38+
| | | / __|/ _ \ '__| _| '__/ _ \/ __| __| | '_ \ / _` |
39+
| |_| \__ \ __/ | | | | | | (_) \__ \ |_| | | | | (_| |
40+
\___/|___/\___|_| \_| |_| \___/|___/\__|_|_| |_|\__, |
41+
__/ |
42+
|___/";
43+
3144
/**
3245
* {@inheritDoc}
3346
*/
@@ -43,6 +56,8 @@ protected function configure()
4356
*/
4457
protected function execute(InputInterface $input, OutputInterface $output)
4558
{
59+
$this->io->writeln("<info>{$this->title}</info>");
60+
4661
$command = $this->getApplication()->find('setup');
4762
$command->run($input, $output);
4863

app/system/Bakery/Command/Debug.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@ class Debug extends BaseCommand
2626
{
2727
use DatabaseTest;
2828

29-
/**
30-
* @var String $ufArt The UserFrosting ASCII art.
31-
*/
32-
public $title = "
33-
_ _ ______ _ _
34-
| | | | | ___| | | (_)
35-
| | | |___ ___ _ __| |_ _ __ ___ ___| |_ _ _ __ __ _
36-
| | | / __|/ _ \ '__| _| '__/ _ \/ __| __| | '_ \ / _` |
37-
| |_| \__ \ __/ | | | | | | (_) \__ \ |_| | | | | (_| |
38-
\___/|___/\___|_| \_| |_| \___/|___/\__|_|_| |_|\__, |
39-
__/ |
40-
|___/";
41-
4229
/**
4330
* {@inheritDoc}
4431
*/
@@ -55,7 +42,7 @@ protected function configure()
5542
protected function execute(InputInterface $input, OutputInterface $output)
5643
{
5744
// Display header,
58-
$this->io->writeln("<info>{$this->title}</info>");
45+
$this->io->title("UserFrosting");
5946
$this->io->writeln("UserFrosing version : " . \UserFrosting\VERSION);
6047
$this->io->writeln("OS Name : " . php_uname('s'));
6148
$this->io->writeln("Project Root : {$this->projectRoot}");

0 commit comments

Comments
 (0)