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);
    }
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);
    }
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 ) ; }
load all service definition from service provider

@param string|ServiceProvider $provider service provider
@param array $options non-shared service names
- aliases
- shared
- instances
- prefix
load all service definition from service provider