public function registerAll($map)
    {
        foreach ($map as $type => $id) {
            if (isset($this->services[$type])) {
                if ($this->debug) {
                    trigger_error(sprintf("Widget type '%s' redefinition, ignoring", $type), E_USER_ERROR);
                }
            }
            $this->services[$type] = $id;
        }
    }