code: public function addManagerRegistry(ManagerRegistry $registry)
      {
      	if (!in_array($registry, $this->registries, true)) {
      		$this->registries[] = $registry;
      	}
      }
docs: Adds a manager registry.
  
  @param ManagerRegistry $registry