forked from matomo-org/matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs matomo-org#4241 let plugins add new console commands
- Loading branch information
Showing
4 changed files
with
91 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?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 CoreConsole | ||
*/ | ||
namespace Piwik\Plugins\CoreConsole; | ||
|
||
/** | ||
* @package CoreConsole | ||
*/ | ||
class CoreConsole extends \Piwik\Plugin | ||
{ | ||
/** | ||
* @see Piwik_Plugin::getListHooksRegistered | ||
*/ | ||
public function getListHooksRegistered() | ||
{ | ||
return array( | ||
'Console.addCommands' => 'addConsoleCommands' | ||
); | ||
} | ||
|
||
public function addConsoleCommands(&$commands) | ||
{ | ||
$commands[] = 'Piwik\Plugins\CoreConsole\CodeCoverage'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GenerateApi'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GenerateController'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GeneratePlugin'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GenerateSettings'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GenerateVisualizationPlugin'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GitCommit'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GitPull'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GitPush'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\RunTests'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\CreatePull'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\FetchFromOTrance'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\LanguageCodes'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\LanguageNames'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\PluginsWithTranslations'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\SetTranslations'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\Translations\Update'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\WatchLog'; | ||
$commands[] = 'Piwik\Plugins\CoreConsole\GenerateTest'; | ||
} | ||
} |