original_string: protected function wrapService(string $name, ?array $parameters = null)
      {
          $config = $this->config->get($name);
          if (true === $config['wrap']) {
              $that = $this;
  
              return function () use ($that, $name, $parameters) {
                  return $that->autoWireClass($name, $parameters);
              };
          }
  
          return $this->autoWireClass($name, $parameters);
      }
code: protected function wrapService(string $name, ?array $parameters = null)
      {
          $config = $this->config->get($name);
          if (true === $config['wrap']) {
              $that = $this;
  
              return function () use ($that, $name, $parameters) {
                  return $that->autoWireClass($name, $parameters);
              };
          }
  
          return $this->autoWireClass($name, $parameters);
      }
code_tokens: protected function wrapService ( string $ name , ? array $ parameters = null ) { $ config = $ this -> config -> get ( $ name ) ; if ( true === $ config [ 'wrap' ] ) { $ that = $ this ; return function ( ) use ( $ that , $ name , $ parameters ) { return $ that -> autoWireClass ( $ name , $ parameters ) ; } ; } return $ this -> autoWireClass ( $ name , $ parameters ) ; }
docstring: Wrap resolved service in callable if enabled.
docstring_tokens: Wrap resolved service in callable if enabled .