From 002df8e6448053a40bc989c21c01401cd14d93f0 Mon Sep 17 00:00:00 2001 From: Daniel Withams Date: Wed, 16 Sep 2015 11:16:21 +0100 Subject: [PATCH] Fixing incorrect function name Correcting the function name used to determine if a new connection should be created. Was checking for Manager being Bound, rather than Connection being bound. --- src/IlluminateRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IlluminateRegistry.php b/src/IlluminateRegistry.php index 2b89e427..76e65393 100644 --- a/src/IlluminateRegistry.php +++ b/src/IlluminateRegistry.php @@ -81,7 +81,7 @@ public function addManager($manager, array $settings = []) */ public function addConnection($connection) { - if (!$this->container->bound($this->getManagerBindingName($connection))) { + if (!$this->container->bound($this->getConnectionBindingName($connection))) { $this->container->singleton($this->getConnectionBindingName($connection), function () use ($connection) { return $this->getManager($connection)->getConnection(); });