function map($url, $class, $ttl = 0, $kbps = 0)
{
if (is_array($url)) {
foreach ($url as $item) {
$this->map($item, $class, $ttl, $kbps);
}
return;
}
foreach (explode('|', self::VERBS) as $method) {
$this->route($method . ' ' . $url, is_string($class) ? $class . '->' . $this->hive['PREMAP'] . strtolower($method) : [$class, $this->hive['PREMAP'] . strtolower($method)], $ttl, $kbps);
}
}