src/Chronos/Scaffolding/app/Services/RouteMapService.php
public static function add($action, $type, $id = null)
    {
        if (!is_null($id))
            self::$modelMap[$type][$id] = $action;
        else
            self::$typeMap[$type] = $action;
    }
public static function add($action, $type, $id = null)
    {
        if (!is_null($id))
            self::$modelMap[$type][$id] = $action;
        else
            self::$typeMap[$type] = $action;
    }
public static function add ( $ action , $ type , $ id = null ) { if ( ! is_null ( $ id ) ) self :: $ modelMap [ $ type ] [ $ id ] = $ action ; else self :: $ typeMap [ $ type ] = $ action ; }
Register new mapping

@param $action
@param $type
@param null $id
Register new mapping