public function setConnection($name, ConnectionInterface $connection)
    {
        if (null !== $this->loggerCallable) {
            $connection->setLoggerCallable($this->loggerCallable);
            $connection->setLogDefault(array('connection' => $name));
        } else {
            $connection->setLoggerCallable(null);
        }

        $this->connections[$name] = $connection;
    }
public function setConnection($name, ConnectionInterface $connection)
    {
        if (null !== $this->loggerCallable) {
            $connection->setLoggerCallable($this->loggerCallable);
            $connection->setLogDefault(array('connection' => $name));
        } else {
            $connection->setLoggerCallable(null);
        }

        $this->connections[$name] = $connection;
    }
public function setConnection ( $ name , ConnectionInterface $ connection ) { if ( null !== $ this -> loggerCallable ) { $ connection -> setLoggerCallable ( $ this -> loggerCallable ) ; $ connection -> setLogDefault ( array ( 'connection' => $ name ) ) ; } else { $ connection -> setLoggerCallable ( null ) ; } $ this -> connections [ $ name ] = $ connection ; }
Set a connection.

@param string              $name       The connection name.
@param ConnectionInterface $connection The connection.

@api
Set a connection .