public function setAlias($name, $target)
    {
        if (isset($this->services[$name]) && ! $this->allowOverride) {
            throw ContainerModificationsNotAllowedException::fromExistingService($name);
        }
        $this->mapAliasToTarget($name, $target);
    }