W3cubDocs

/Laravel 5.5

RemoteManager

class RemoteManager (View source)

Properties

protected Application $app The application instance.

Methods

void __construct(Application $app)

Create a new remote manager instance.

ConnectionInterface into(string|array|mixed $name)

Get a remote connection instance.

ConnectionInterface connection(string|array $name = null)

Get a remote connection instance.

ConnectionInterface group(string $name)

Get a connection group instance by name.

MultiConnection multiple(array $names)

Resolve a multiple connection instance.

Connection resolve(string $name)

Resolve a remote connection instance.

Connection makeConnection(string $name, array $config)

Make a new connection instance.

void setOutput(Connection $connection)

Set the output implementation on the connection.

array getAuth(array $config)

Format the appropriate authentication array payload.

array getConfig(string $name)

Get the configuration for a remote server.

string getDefaultConnection()

Get the default connection name.

void setDefaultConnection(string $name)

Set the default connection name.

mixed __call(string $method, array $parameters)

Dynamically pass methods to the default connection.

Details

void __construct(Application $app)

Create a new remote manager instance.

Parameters

Application $app

Return Value

void

ConnectionInterface into(string|array|mixed $name)

Get a remote connection instance.

Parameters

string|array|mixed $name

Return Value

ConnectionInterface

ConnectionInterface connection(string|array $name = null)

Get a remote connection instance.

Parameters

string|array $name

Return Value

ConnectionInterface

ConnectionInterface group(string $name)

Get a connection group instance by name.

Parameters

string $name

Return Value

ConnectionInterface

MultiConnection multiple(array $names)

Resolve a multiple connection instance.

Parameters

array $names

Return Value

MultiConnection

Connection resolve(string $name)

Resolve a remote connection instance.

Parameters

string $name

Return Value

Connection

protected Connection makeConnection(string $name, array $config)

Make a new connection instance.

Parameters

string $name
array $config

Return Value

Connection

protected void setOutput(Connection $connection)

Set the output implementation on the connection.

Parameters

Connection $connection

Return Value

void

protected array getAuth(array $config)

Format the appropriate authentication array payload.

Parameters

array $config

Return Value

array

Exceptions

InvalidArgumentException

protected array getConfig(string $name)

Get the configuration for a remote server.

Parameters

string $name

Return Value

array

Exceptions

InvalidArgumentException

string getDefaultConnection()

Get the default connection name.

Return Value

string

void setDefaultConnection(string $name)

Set the default connection name.

Parameters

string $name

Return Value

void

mixed __call(string $method, array $parameters)

Dynamically pass methods to the default connection.

Parameters

string $method
array $parameters

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Remote/RemoteManager.html