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
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-11-11 04:44:39 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-11 04:44:39 +0400
commit225998cbfa9435fbd42edb6b474cc0ca2bd56337 (patch)
tree260b33ad454dfa7f8d22d805c8a156dd6862a46d /plugins/ExampleCommand/ExampleCommand.php
parent085c55f95f0d5b95549dec9daca7e7ff9d81d4ab (diff)
refs #4241 added example command
Diffstat (limited to 'plugins/ExampleCommand/ExampleCommand.php')
-rw-r--r--plugins/ExampleCommand/ExampleCommand.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/ExampleCommand/ExampleCommand.php b/plugins/ExampleCommand/ExampleCommand.php
new file mode 100644
index 0000000000..d818366edb
--- /dev/null
+++ b/plugins/ExampleCommand/ExampleCommand.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ * @category Piwik_Plugins
+ * @package ExampleCommand
+ */
+namespace Piwik\Plugins\ExampleCommand;
+
+/**
+ * @package ExampleCommand
+ */
+class ExampleCommand extends \Piwik\Plugin
+{
+ /**
+ * @see Piwik\Plugin::getListHooksRegistered
+ */
+ public function getListHooksRegistered()
+ {
+ return array(
+ 'Console.addCommands' => 'addConsoleCommands'
+ );
+ }
+
+ public function addConsoleCommands(&$commands)
+ {
+ $commands[] = 'Piwik\Plugins\ExampleCommand\Commands\HelloWorld';
+ }
+}