|
|
@@ -38,6 +38,22 @@ class CommandListShell extends Shell
|
|
|
public $tasks = ['Command'];
|
|
|
|
|
|
/**
|
|
|
+ * Displays a header for the shell
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ protected function _welcome()
|
|
|
+ {
|
|
|
+ $this->out();
|
|
|
+ $this->out(sprintf('<info>Welcome to CakePHP %s Console</info>', 'v' . Configure::version()));
|
|
|
+ $this->hr();
|
|
|
+ $this->out(sprintf('App : %s', APP_DIR));
|
|
|
+ $this->out(sprintf('Path: %s', APP));
|
|
|
+ $this->out(sprintf('PHP : %s', phpversion()));
|
|
|
+ $this->hr();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* startup
|
|
|
*
|
|
|
* @return void
|