Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add little more fun to console #3350

Merged
merged 1 commit into from

2 participants

@bakura10

No description provided.

@weierophinney weierophinney merged commit 8e0baac into from
@weierophinney weierophinney was assigned
@bakura10 bakura10 deleted the branch
@youngguns-nl youngguns-nl referenced this pull request from a commit in youngguns-nl/zf2
@weierophinney weierophinney Merge branch 'hotfix/3350' into develop
Close #3350
6d5a445
@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney Merge branch 'hotfix/3350' into develop
Close #3350
e50a09d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 4, 2013
  1. @bakura10
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 10 deletions.
  1. +14 −10 library/Zend/Mvc/View/Console/RouteNotFoundStrategy.php
View
24 library/Zend/Mvc/View/Console/RouteNotFoundStrategy.php
@@ -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
@@ -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;
}
Something went wrong with that request. Please try again.