original_string: public function set($name, $service, $shared = true)
      {
          return $this->setService($name, $service, $shared);
      }
code: public function set($name, $service, $shared = true)
      {
          return $this->setService($name, $service, $shared);
      }
code_tokens: public function set ( $ name , $ service , $ shared = true ) { return $ this -> setService ( $ name , $ service , $ shared ) ; }
docstring: Register a service with the locator.
  
  This method is an alias to $this->setService().
  
  @param string $name
  @param mixed  $service
  @param bool   $shared
  
  @return ServiceManager
docstring_tokens: Register a service with the locator .