update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -8,32 +8,17 @@
|
|||
*/
|
||||
namespace Piwik\Plugin;
|
||||
|
||||
use Piwik\Common;
|
||||
use Symfony\Component\Console\Command\Command as SymfonyCommand;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
/**
|
||||
* The base class for console commands.
|
||||
*
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class ConsoleCommand extends SymfonyCommand
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param string|null $name The name of the command, eg, `'generate:api'`.
|
||||
*/
|
||||
public function __construct($name = null)
|
||||
{
|
||||
if (!Common::isPhpCliMode()) {
|
||||
throw new \RuntimeException('Only executable in CLI mode');
|
||||
}
|
||||
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
||||
public function writeSuccessMessage(OutputInterface $output, $messages)
|
||||
{
|
||||
$lengths = array_map('strlen', $messages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue