diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-10 08:48:51 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-10 08:48:51 +0300 |
commit | 2c80f5bc4bf655b95c0517af9d8e88d0a8195ae7 (patch) | |
tree | cd376b00dc648f7ec7dd1a761693147dc40b9b21 /core | |
parent | db686a6f900e2d64467bee4a3987ebd5052ac794 (diff) |
Add comment in core\Console.php regarding not adding a command if it already exists in the Piwik Console class.
Diffstat (limited to 'core')
-rw-r--r-- | core/Console.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Console.php b/core/Console.php index d36d7b91a4..a598edffac 100644 --- a/core/Console.php +++ b/core/Console.php @@ -69,6 +69,8 @@ class Console extends Application } else { /** @var Command $commandInstance */ $commandInstance = new $command; + + // do not add the command if it already exists; this way we can add the command ourselves in tests if (!$this->has($commandInstance->getName())) { $this->add($commandInstance); } |