Exemplo n.º 1
0
 /**
  * @param mixed|string $offset
  */
 public function offsetUnset($offset)
 {
     Lib::array_forget($this->items, $offset);
 }
Exemplo n.º 2
0
 /**
  * @param string $name
  *
  * @throws DBCannotRemoveCachedConnection
  */
 public function removeConnection(string $name)
 {
     if ($this->isCached($name)) {
         throw new DBCannotRemoveCachedConnection("Connection `{$name}` is active and therefore cannot be removed.");
     }
     if ($this->hasConnection($name)) {
         Lib::array_forget($this->connections, $name);
     }
 }