original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: load all service definition from service provider
  
  @param string|ServiceProvider $provider service provider
  @param array $options non-shared service names
  - aliases
  - shared
  - instances
  - prefix
docstring_tokens: load all service definition from service provider