public function load($provider, $options = null)
    {
        if (!is_object($provider)) {
            $provider = $this->getShared($provider);
        }
        $names = $provider->getNames();
        if (isset($options['aliases'])) {
            $services = $this->createServiceAliases($names, $options['aliases']);
            unset($options['aliases']);
        } else {
            $services = $names;
        }
        return $this->autoload($services, $provider, $options);
    }