public function alias(string $alias, string $original)
    {
        $this->aliases[$alias] = $this->getRealId($original);

        return $this;
    }
public function alias(string $alias, string $original)
    {
        $this->aliases[$alias] = $this->getRealId($original);

        return $this;
    }
public function alias ( string $ alias , string $ original ) { $ this -> aliases [ $ alias ] = $ this -> getRealId ( $ original ) ; return $ this ; }
Sets an alias for a service.

@param string $alias
@param string $original
@return $this
Sets an alias for a service .