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