diff --git a/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php b/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php
+++ b/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php
@@ -158,6 +158,37 @@ class BuilderConfiguration
   }
 
   /**
+   * Returns true if a service alias exists.
+   *
+   * @param  string  $alias The alias
+   *
+   * @return Boolean true if the alias exists, false otherwise
+   */
+  public function hasAlias($alias)
+  {
+    return array_key_exists($alias, $this->aliases);
+  }
+
+  /**
+   * Gets the service id for a given alias.
+   *
+   * @param  string $alias The alias
+   *
+   * @return string The aliased id
+   *
+   * @throws \InvalidArgumentException if the service alias does not exist
+   */
+  public function getAlias($alias)
+  {
+    if (!$this->hasAlias($alias))
+    {
+      throw new \InvalidArgumentException(sprintf('The service alias "%s" does not exist.', $alias));
+    }
+
+    return $this->aliases[$alias];
+  }
+
+  /**
    * Sets a definition.
    *
    * @param  string     $id         The identifier
[DependencyInjection] added some missing accessors