private function getManagerForClass($class)
    {
        $tries = [];

        foreach ($this->managers as $manager) {
            if ($manager->supportsClass($class)) {
                return $manager;
            }

            $tries[] = get_class($manager);
        }

        throw new \RuntimeException(
            sprintf(
                'Class "%s" is not supported by any UserManager. Tried "%s".',
                $class,
                implode('", "', $tries)
            )
        );
    }
private function getManagerForClass($class)
    {
        $tries = [];

        foreach ($this->managers as $manager) {
            if ($manager->supportsClass($class)) {
                return $manager;
            }

            $tries[] = get_class($manager);
        }

        throw new \RuntimeException(
            sprintf(
                'Class "%s" is not supported by any UserManager. Tried "%s".',
                $class,
                implode('", "', $tries)
            )
        );
    }
private function getManagerForClass ( $ class ) { $ tries = [ ] ; foreach ( $ this -> managers as $ manager ) { if ( $ manager -> supportsClass ( $ class ) ) { return $ manager ; } $ tries [ ] = get_class ( $ manager ) ; } throw new \ RuntimeException ( sprintf ( 'Class "%s" is not supported by any UserManager. Tried "%s".' , $ class , implode ( '", "' , $ tries ) ) ) ; }
Find appropriate user manager for a class.

@param string $class The user class

@return UserManagerInterface
Find appropriate user manager for a class .