original_string: protected function serviceFromDefinition($id, $args)
      {
          // create the service object
          $service = $this->createServiceObject($id, $args);
  
          // run predefined methods if any
          $this->runDefinedMethods($id, $service);
  
          // decorate the service if DecorateExtension loaded
          $this->decorateService($service);
  
          return $service;
      }
code: protected function serviceFromDefinition($id, $args)
      {
          // create the service object
          $service = $this->createServiceObject($id, $args);
  
          // run predefined methods if any
          $this->runDefinedMethods($id, $service);
  
          // decorate the service if DecorateExtension loaded
          $this->decorateService($service);
  
          return $service;
      }
code_tokens: protected function serviceFromDefinition ( $ id , $ args ) { // create the service object $ service = $ this -> createServiceObject ( $ id , $ args ) ; // run predefined methods if any $ this -> runDefinedMethods ( $ id , $ service ) ; // decorate the service if DecorateExtension loaded $ this -> decorateService ( $ service ) ; return $ service ; }
docstring: Check circular, create service and decorate service
  
  @param  string $id service id
  @param  array $args constructor arguments
  @return object
  @access protected
docstring_tokens: Check circular create service and decorate service