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];
    }
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];
    }
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 ] ; }
Get a service instance.

@param  string $name

@return \DreamFactory\Core\Contracts\ServiceInterface
@throws \DreamFactory\Core\Exceptions\NotFoundException
Get a service instance .