diff --git a/src/DI/Container.php b/src/DI/Container.php
index <HASH>..<HASH> 100644
--- a/src/DI/Container.php
+++ b/src/DI/Container.php
@@ -84,12 +84,16 @@ class Container
     }
 
     /**
-     * Store a class under its className
+     * Store an instance under either the provided $name or its class name.
      *
-     * @param object $class
+     * @param object      $instance
+     * @param string|null $name
      */
-    public static function store($class)
+    public static function store($instance, $name = null)
     {
-        self::$instances[get_class($class)] = $class;
+        if (!$name) {
+            $name = get_class($instance);
+        }
+        self::$instances[$name] = $instance;
     }
 }
\DI\Container::store() now accepts a self-provided  so you can store a specific instance under a specific name.