src/OAuthServiceRegistry.php
public function getService($service)
    {
        $service = $this->mapServiceName($service);

        if (isset($this->services[$service])) {
            return $this->services[$service];
        }

        return $this->services[$service] = $this->createService($service);
    }
public function getService($service)
    {
        $service = $this->mapServiceName($service);

        if (isset($this->services[$service])) {
            return $this->services[$service];
        }

        return $this->services[$service] = $this->createService($service);
    }
public function getService ( $ service ) { $ service = $ this -> mapServiceName ( $ service ) ; if ( isset ( $ this -> services [ $ service ] ) ) { return $ this -> services [ $ service ] ; } return $ this -> services [ $ service ] = $ this -> createService ( $ service ) ; }
Retrieve a service by name.

@param string $service

@return ServiceInterface
Retrieve a service by name .