public function offsetSet($class, $factory)
	{
		if (is_callable($factory)) {
			$this->factories[$class] = $factory;
		} else if (is_object($factory)) {
			$this->instances[$class] = $factory;
		} else {
			throw new \InvalidArgumentException("Dependency supplied is neither a callable or an object");
		}
	}