Creates a RouteCollection and populates it with the $routes provided.
Sets the banner to call showVersion().
If no help command is defined, defines one.
If no version command is defined, defines one.
public __construct ( string $name, string $version, array | Traversabl\Traversable $routes, Zend\Console\Adapter\AdapterInterface $console = null, ZF\Console\DispatcherInterface $dispatcher = null ) | ||
$name | string | Application name |
$version | string | Application version |
$routes | array | Traversabl\Traversable | Routes/route specifications to use for the application |
$console | Zend\Console\Adapter\AdapterInterface | Console adapter to use within the application |
$dispatcher | ZF\Console\DispatcherInterface | Configured dispatcher mapping routes to callables |