original_string: private function getManagerName(ContainerBuilder $container)
      {
          foreach ($this->managerParameters as $param) {
              if ($container->hasParameter($param)) {
                  $name = $container->getParameter($param);
                  if ($name) {
                      return $name;
                  }
              }
          }
  
          throw new InvalidArgumentException(sprintf(
              'Could not find the manager name parameter in the container. Tried the following parameter names: "%s"',
              implode('", "', $this->managerParameters)
          ));
      }
code: private function getManagerName(ContainerBuilder $container)
      {
          foreach ($this->managerParameters as $param) {
              if ($container->hasParameter($param)) {
                  $name = $container->getParameter($param);
                  if ($name) {
                      return $name;
                  }
              }
          }
  
          throw new InvalidArgumentException(sprintf(
              'Could not find the manager name parameter in the container. Tried the following parameter names: "%s"',
              implode('", "', $this->managerParameters)
          ));
      }
code_tokens: private function getManagerName ( ContainerBuilder $ container ) { foreach ( $ this -> managerParameters as $ param ) { if ( $ container -> hasParameter ( $ param ) ) { $ name = $ container -> getParameter ( $ param ) ; if ( $ name ) { return $ name ; } } } throw new InvalidArgumentException ( sprintf ( 'Could not find the manager name parameter in the container. Tried the following parameter names: "%s"' , implode ( '", "' , $ this -> managerParameters ) ) ) ; }
docstring: Determine the manager name.
  
  The default implementation loops over the managerParameters and returns
  the first non-empty parameter.
  
  @return string The name of the active manager
  
  @throws InvalidArgumentException if none of the managerParameters is found in the container
docstring_tokens: Determine the manager name .