managerRegistry = $managerRegistry; } public function getDefaultConnection(): Connection { return $this->managerRegistry->getConnection(); } public function getConnection(string $name): Connection { return $this->managerRegistry->getConnection($name); } }