ZF\Console\Application::mapRouteHandler PHP Method

mapRouteHandler() protected method

If a given route specification has a "handler" entry, and the dispatcher does not currently have a handler for that command, map it.
protected mapRouteHandler ( array $route )
$route array
    protected function mapRouteHandler(array $route)
    {
        if (!isset($route['handler'])) {
            return;
        }
        $command = $route['name'];
        if ($this->dispatcher->has($command)) {
            return;
        }
        $this->dispatcher->map($command, $route['handler']);
    }