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)
        ));
    }
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)
        ));
    }
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 ) ) ) ; }
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
Determine the manager name .