src/Router/NamedDataGenerator/HandlerWrapperGenerator.php
public function addNamedRoute($name, $httpMethod, $routeData, $handler)
    {
        $handler = array(
            'name' => $name,
            'handler' => $handler,
        );

        $this->addRoute($httpMethod, $routeData, $handler);
    }
public function addNamedRoute($name, $httpMethod, $routeData, $handler)
    {
        $handler = array(
            'name' => $name,
            'handler' => $handler,
        );

        $this->addRoute($httpMethod, $routeData, $handler);
    }
Adds a named route to the data generator

The handler doesn't necessarily need to be a callable, it
can be arbitrary data that will be returned when the route
matches.

@param string $name
@param string $httpMethod
@param array  $routeData
@param mixed  $handler

@return void