protected function setupVersionCommand(RouteCollection $routeCollection, DispatcherInterface $dispatcher)
{
$routeCollection->addRouteSpec(['name' => 'version', 'route' => '(--version|-v)', 'description' => 'Display the version of the script.', 'short_description' => 'Display the version of the script', 'defaults' => ['version' => true], 'prepend_command_to_route' => false]);
$self = $this;
// PHP < 5.4 compat
$dispatcher->map('version', function ($route, $console) use($self) {
return $self->showVersion($console);
});
}