original_string: public function getService($name)
      {
          // If we haven't created this service, we'll create it based on the config provided.
          // todo: Caching the service is causing some strange PHP7 only memory issues.
  //        if (!isset($this->services[$name])) {
          $service = $this->makeService($name);
  
  //            if ($this->app->bound('events')) {
  //                $connection->setEventDispatcher($this->app['events']);
  //            }
  
          $this->services[$name] = $service;
  
  //        }
  
          return $this->services[$name];
      }
code: public function getService($name)
      {
          // If we haven't created this service, we'll create it based on the config provided.
          // todo: Caching the service is causing some strange PHP7 only memory issues.
  //        if (!isset($this->services[$name])) {
          $service = $this->makeService($name);
  
  //            if ($this->app->bound('events')) {
  //                $connection->setEventDispatcher($this->app['events']);
  //            }
  
          $this->services[$name] = $service;
  
  //        }
  
          return $this->services[$name];
      }
code_tokens: public function getService ( $ name ) { // If we haven't created this service, we'll create it based on the config provided. // todo: Caching the service is causing some strange PHP7 only memory issues. //        if (!isset($this->services[$name])) { $ service = $ this -> makeService ( $ name ) ; //            if ($this->app->bound('events')) { //                $connection->setEventDispatcher($this->app['events']); //            } $ this -> services [ $ name ] = $ service ; //        } return $ this -> services [ $ name ] ; }
docstring: Get a service instance.
  
  @param  string $name
  
  @return \DreamFactory\Core\Contracts\ServiceInterface
  @throws \DreamFactory\Core\Exceptions\NotFoundException
docstring_tokens: Get a service instance .