original_string: protected function makeService($name)
      {
          $config = $this->getConfig($name);
  
          // First we will check by the service name to see if an extension has been
          // registered specifically for that service. If it has we will call the
          // Closure and pass it the config allowing it to resolve the service.
          if (isset($this->extensions[$name])) {
              return call_user_func($this->extensions[$name], $config, $name);
          }
  
          $config = $this->getDbConfig($name);
          $type = $config['type'];
  
          // Next we will check to see if a type extension has been registered for a service type
          // and will call the factory Closure if so, which allows us to have a more generic
          // resolver for the service types themselves which applies to all services.
          if (isset($this->types[$type])) {
              return $this->types[$type]->make($name, $config);
          }
  
          throw new InvalidArgumentException("Unsupported service type '$type'.");
      }
code: protected function makeService($name)
      {
          $config = $this->getConfig($name);
  
          // First we will check by the service name to see if an extension has been
          // registered specifically for that service. If it has we will call the
          // Closure and pass it the config allowing it to resolve the service.
          if (isset($this->extensions[$name])) {
              return call_user_func($this->extensions[$name], $config, $name);
          }
  
          $config = $this->getDbConfig($name);
          $type = $config['type'];
  
          // Next we will check to see if a type extension has been registered for a service type
          // and will call the factory Closure if so, which allows us to have a more generic
          // resolver for the service types themselves which applies to all services.
          if (isset($this->types[$type])) {
              return $this->types[$type]->make($name, $config);
          }
  
          throw new InvalidArgumentException("Unsupported service type '$type'.");
      }
code_tokens: protected function makeService ( $ name ) { $ config = $ this -> getConfig ( $ name ) ; // First we will check by the service name to see if an extension has been // registered specifically for that service. If it has we will call the // Closure and pass it the config allowing it to resolve the service. if ( isset ( $ this -> extensions [ $ name ] ) ) { return call_user_func ( $ this -> extensions [ $ name ] , $ config , $ name ) ; } $ config = $ this -> getDbConfig ( $ name ) ; $ type = $ config [ 'type' ] ; // Next we will check to see if a type extension has been registered for a service type // and will call the factory Closure if so, which allows us to have a more generic // resolver for the service types themselves which applies to all services. if ( isset ( $ this -> types [ $ type ] ) ) { return $ this -> types [ $ type ] -> make ( $ name , $ config ) ; } throw new InvalidArgumentException ( "Unsupported service type '$type'." ) ; }
docstring: Make the service instance.
  
  @param  string $name
  
  @return \DreamFactory\Core\Contracts\ServiceInterface
  @throws \DreamFactory\Core\Exceptions\NotFoundException
docstring_tokens: Make the service instance .