Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-03-10 08:48:51 +0300
committerdiosmosis <benaka@piwik.pro>2015-03-10 08:48:51 +0300
commit2c80f5bc4bf655b95c0517af9d8e88d0a8195ae7 (patch)
treecd376b00dc648f7ec7dd1a761693147dc40b9b21 /core
parentdb686a6f900e2d64467bee4a3987ebd5052ac794 (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.php2
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);
}