Collective\Remote\RemoteManager::into PHP Method

into() public method

Get a remote connection instance.
public into ( string | array | mixed $name ) : Collective\Remote\ConnectionInterface
$name string | array | mixed
return Collective\Remote\ConnectionInterface
    public function into($name)
    {
        if (is_string($name) || is_array($name)) {
            return $this->connection($name);
        } else {
            return $this->connection(func_get_args());
        }
    }

Usage Example

 /**
  * Get a remote connection instance.
  *
  * @param string|array|mixed $name
  * @return \Collective\Remote\ConnectionInterface 
  * @static 
  */
 public static function into($name)
 {
     return \Collective\Remote\RemoteManager::into($name);
 }