public function resolve($className)
    {
        $trimmed = ltrim($className, '\\');

        if (!$this->canResolve($trimmed)) return $className;

        return $this->implementations[$trimmed];
    }