/**
* Map a route handler
*
* If a given route specification has a "handler" entry, and the dispatcher
* does not currently have a handler for that command, map it.
*
* @param array $route
*/
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']);
}