48    public function register(
string $alias, \Closure $callback) : void{
 
   49        $key = $this->reprocess($alias);
 
   50        if(isset($this->callbackMap[$key])){
 
   51            throw new \InvalidArgumentException(
"Alias \"$key\" is already registered");
 
   53        $this->callbackMap[$key] = $callback;
 
 
   65        $existingKey = $this->reprocess($existing);
 
   66        if(!isset($this->callbackMap[$existingKey])){
 
   67            throw new \InvalidArgumentException(
"Cannot register new alias for unknown existing alias \"$existing\"");
 
   69        $newKey = $this->reprocess($alias);
 
   70        if(isset($this->callbackMap[$newKey])){
 
   71            throw new \InvalidArgumentException(
"Alias \"$newKey\" is already registered");
 
   73        $this->callbackMap[$newKey] = $this->callbackMap[$existingKey];