W3cubDocs

/Laravel 4.2

MultiConnection

class MultiConnection implements ConnectionInterface (View source)

Methods

void __construct(array $connections)

The array of connections.

void define(string $task, string|array $commands)

Define a set of commands as a task.

void task(string $task, Closure $callback = null)

Run a task against the connection.

void run(string|array $commands, Closure $callback = null)

Run a set of commands against the connection.

void put(string $local, string $remote)

Upload a local file to the server.

void putString(string $remote, string $contents)

Upload a string to to the given file on the server.

Details

void __construct(array $connections)

The array of connections.

Parameters

array $connections

Return Value

void

void define(string $task, string|array $commands)

Define a set of commands as a task.

Parameters

string $task
string|array $commands

Return Value

void

void task(string $task, Closure $callback = null)

Run a task against the connection.

Parameters

string $task
Closure $callback

Return Value

void

void run(string|array $commands, Closure $callback = null)

Run a set of commands against the connection.

Parameters

string|array $commands
Closure $callback

Return Value

void

void put(string $local, string $remote)

Upload a local file to the server.

Parameters

string $local
string $remote

Return Value

void

void putString(string $remote, string $contents)

Upload a string to to the given file on the server.

Parameters

string $remote
string $contents

Return Value

void

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