Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Add little more fun to console
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jan 4, 2013
1 parent 3f4097c commit 8e0baac
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions library/Zend/Mvc/View/Console/RouteNotFoundStrategy.php
Expand Up @@ -10,23 +10,24 @@

namespace Zend\Mvc\View\Console;

use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;
use Zend\Console\Adapter\AdapterInterface as ConsoleAdapter;
use Zend\Console\ColorInterface;
use Zend\Console\Response as ConsoleResponse;
use Zend\Console\Request as ConsoleRequest;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;
use Zend\ServiceManager\ServiceManager;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use Zend\ModuleManager\ModuleManagerInterface;
use Zend\ModuleManager\Feature\ConsoleBannerProviderInterface;
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;
use Zend\Mvc\Application;
use Zend\Mvc\Exception\RuntimeException;
use Zend\Console\Response as ConsoleResponse;
use Zend\Console\Request as ConsoleRequest;
use Zend\Console\Adapter\AdapterInterface as ConsoleAdapter;
use Zend\View\Model\ConsoleModel;
use Zend\Version\Version;
use Zend\Mvc\MvcEvent;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use Zend\ServiceManager\ServiceManager;
use Zend\Stdlib\ResponseInterface as Response;
use Zend\Text\Table;
use Zend\Version\Version;
use Zend\View\Model\ConsoleModel;

/**
* @category Zend
Expand Down Expand Up @@ -326,9 +327,12 @@ protected function getConsoleUsage(
$result .= "\n";
}

// Colorize the command
$a = $console->colorize($scriptName . ' ' . $a, ColorInterface::GREEN);

$tableCols = 2;
$tableType = 1;
$table[] = array($scriptName . ' ' . $a, $b);
$table[] = array($a, $b);
continue;
}

Expand Down

0 comments on commit 8e0baac

Please sign in to comment.