protected function addConnection($name, array $parameters = [], array $envParameters = [])
    {
        $connectionParameterBag = new ParameterBag($envParameters);
        $connectionParameterBag->add($parameters);
        $connectionParameterBag->resolve();
        $this->connections[$name] = $connectionParameterBag;
    }
protected function addConnection($name, array $parameters = [], array $envParameters = [])
    {
        $connectionParameterBag = new ParameterBag($envParameters);
        $connectionParameterBag->add($parameters);
        $connectionParameterBag->resolve();
        $this->connections[$name] = $connectionParameterBag;
    }
protected function addConnection ( $ name , array $ parameters = [ ] , array $ envParameters = [ ] ) { $ connectionParameterBag = new ParameterBag ( $ envParameters ) ; $ connectionParameterBag -> add ( $ parameters ) ; $ connectionParameterBag -> resolve ( ) ; $ this -> connections [ $ name ] = $ connectionParameterBag ; }
Create and resolve a ParameterBag for a connection.
Add the bag to the connections map.
@param string $name Connection name.
@param array $parameters Connection parameters.
@param array $envParameters Environment parameters.
Create and resolve a ParameterBag for a connection . Add the bag to the connections map .