diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-11 04:44:39 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-11 04:44:39 +0400 |
commit | 225998cbfa9435fbd42edb6b474cc0ca2bd56337 (patch) | |
tree | 260b33ad454dfa7f8d22d805c8a156dd6862a46d /plugins/ExampleCommand/ExampleCommand.php | |
parent | 085c55f95f0d5b95549dec9daca7e7ff9d81d4ab (diff) |
refs #4241 added example command
Diffstat (limited to 'plugins/ExampleCommand/ExampleCommand.php')
-rw-r--r-- | plugins/ExampleCommand/ExampleCommand.php | 32 |
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'; + } +} |