Skip to content
Extraits de code Groupes Projets
Valider 3e39ba8d rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #6533 already disabled some commands that are only needed in development

parent 6bb634c8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
This is a changelog for Piwik platform developers. All changes for our HTTP API's, Plugins, Themes, etc will be listed here. This is a changelog for Piwik platform developers. All changes for our HTTP API's, Plugins, Themes, etc will be listed here.
## Piwik 2.9.0
### Breaking Changes
* Development related [console commands](http://developer.piwik.org/guides/piwik-on-the-command-line) are only available if the development mode is enabled. To enable the development mode execute `./console development:enable`.
## Piwik 2.8.2 ## Piwik 2.8.2
### Library updates ### Library updates
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
namespace Piwik\Plugins\CoreConsole\Commands; namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;
use Piwik\Plugin\ConsoleCommand; use Piwik\Plugin\ConsoleCommand;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
...@@ -15,6 +16,11 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -15,6 +16,11 @@ use Symfony\Component\Console\Output\OutputInterface;
class DevelopmentManageTestFiles extends ConsoleCommand class DevelopmentManageTestFiles extends ConsoleCommand
{ {
public function isEnabled()
{
return Development::isEnabled();
}
protected function configure() protected function configure()
{ {
$this->setName('development:test-files'); $this->setName('development:test-files');
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
namespace Piwik\Plugins\CoreConsole\Commands; namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;
use Piwik\Http; use Piwik\Http;
use Piwik\Plugin\ConsoleCommand; use Piwik\Plugin\ConsoleCommand;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
...@@ -19,6 +20,11 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -19,6 +20,11 @@ use Symfony\Component\Console\Output\OutputInterface;
*/ */
class DevelopmentSyncUITestScreenshots extends ConsoleCommand class DevelopmentSyncUITestScreenshots extends ConsoleCommand
{ {
public function isEnabled()
{
return Development::isEnabled();
}
protected function configure() protected function configure()
{ {
$this->setName('development:sync-ui-test-screenshots'); $this->setName('development:sync-ui-test-screenshots');
......
...@@ -19,6 +19,11 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -19,6 +19,11 @@ use Symfony\Component\Console\Output\OutputInterface;
abstract class GeneratePluginBase extends ConsoleCommand abstract class GeneratePluginBase extends ConsoleCommand
{ {
public function isEnabled()
{
return Development::isEnabled();
}
public function getPluginPath($pluginName) public function getPluginPath($pluginName)
{ {
return PIWIK_INCLUDE_PATH . $this->getRelativePluginPath($pluginName); return PIWIK_INCLUDE_PATH . $this->getRelativePluginPath($pluginName);
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
namespace Piwik\Plugins\CoreConsole\Commands; namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;
use Piwik\Plugin\ConsoleCommand; use Piwik\Plugin\ConsoleCommand;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
...@@ -18,6 +19,11 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -18,6 +19,11 @@ use Symfony\Component\Console\Output\OutputInterface;
*/ */
class GitCommit extends ConsoleCommand class GitCommit extends ConsoleCommand
{ {
public function isEnabled()
{
return Development::isEnabled();
}
protected function configure() protected function configure()
{ {
$this->setName('git:commit') $this->setName('git:commit')
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
namespace Piwik\Plugins\CoreConsole\Commands; namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;
use Piwik\Plugin\ConsoleCommand; use Piwik\Plugin\ConsoleCommand;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
...@@ -17,6 +18,11 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -17,6 +18,11 @@ use Symfony\Component\Console\Output\OutputInterface;
*/ */
class GitPull extends ConsoleCommand class GitPull extends ConsoleCommand
{ {
public function isEnabled()
{
return Development::isEnabled();
}
protected function configure() protected function configure()
{ {
$this->setName('git:pull'); $this->setName('git:pull');
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
namespace Piwik\Plugins\CoreConsole\Commands; namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;
use Piwik\Plugin\ConsoleCommand; use Piwik\Plugin\ConsoleCommand;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
...@@ -17,6 +18,11 @@ use Symfony\Component\Console\Output\OutputInterface; ...@@ -17,6 +18,11 @@ use Symfony\Component\Console\Output\OutputInterface;
*/ */
class GitPush extends ConsoleCommand class GitPush extends ConsoleCommand
{ {
public function isEnabled()
{
return Development::isEnabled();
}
protected function configure() protected function configure()
{ {
$this->setName('git:push'); $this->setName('git:push');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter