public function setAlias($existsId, $newId) {
		if (isset($this->_definitions[$newId])) {
			throw new Exceptions\ServiceOverride('Service "' . $newId . '" already exists');
		}
		
		$this->_definitions[$newId] = $this->getDefinition($existsId);
	}
public function setAlias($existsId, $newId) {
		if (isset($this->_definitions[$newId])) {
			throw new Exceptions\ServiceOverride('Service "' . $newId . '" already exists');
		}
		
		$this->_definitions[$newId] = $this->getDefinition($existsId);
	}
public function setAlias ( $ existsId , $ newId ) { if ( isset ( $ this -> _definitions [ $ newId ] ) ) { throw new Exceptions \ ServiceOverride ( 'Service "' . $ newId . '" already exists' ) ; } $ this -> _definitions [ $ newId ] = $ this -> getDefinition ( $ existsId ) ; }
Set alias for service

@param  string $existsId ID of exists service
@param  string $newId    Alias ID
@throws Exceptions\ServiceOverride
Set alias for service