zendframework/zf2 — pull request #4449 by mtymek (2013-05-08 19:48:31+00:00)
Title: Separate console route matcher

This PR extracts code responsible for parsing command line arguments into separate class under `Zend\Console` namespace. This allows using console commands without full MVC stack (even in non ZF2-based projects), for instance:

```php
use Zend\Console\ConsoleRouteMatcher;

array_shift($argv);
$matcher = new ConsoleRouteMatcher("action [--verbose|-v] ");
$matches = $matcher->match($argv);
print_r($matches);
```

ConsoleRouteMatcher is now used internally by `Zend\Mvc\Router\Console\Simple`.