public static function fromRegistry(ManagerRegistry $registry)
    {
        $drivers = array();
        foreach ($registry->getManagers() as $manager) {
            $drivers[] = self::fromManager($manager);
        }

        return new DriverChain($drivers);
    }
public static function fromRegistry(ManagerRegistry $registry)
    {
        $drivers = array();
        foreach ($registry->getManagers() as $manager) {
            $drivers[] = self::fromManager($manager);
        }

        return new DriverChain($drivers);
    }
public static function fromRegistry ( ManagerRegistry $ registry ) { $ drivers = array ( ) ; foreach ( $ registry -> getManagers ( ) as $ manager ) { $ drivers [ ] = self :: fromManager ( $ manager ) ; } return new DriverChain ( $ drivers ) ; }
Create a driver from a Doctrine registry

@param ManagerRegistry $registry
@return DriverInterface
Create a driver from a Doctrine registry