PHP Класс Collective\Remote\RemoteManager

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$app Illuminate\Contracts\Container\Container The application instance.

Открытые методы

Метод Описание
__call ( string $method, array $parameters ) : mixed Dynamically pass methods to the default connection.
__construct ( Illuminate\Contracts\Container\Container $app ) Create a new remote manager instance.
connect ( array $config ) : Collective\Remote\Connection Make a new connection instance based on passed params.
connection ( string | array $name = null ) : Collective\Remote\ConnectionInterface Get a remote connection instance.
getDefaultConnection ( ) : string Get the default connection name.
group ( string $name ) : Collective\Remote\ConnectionInterface Get a connection group instance by name.
into ( string | array | mixed $name ) : Collective\Remote\ConnectionInterface Get a remote connection instance.
multiple ( array $names ) : Collective\Remote\MultiConnection Resolve a multiple connection instance.
resolve ( string $name ) : Collective\Remote\Connection Resolve a remote connection instance.
setDefaultConnection ( string $name ) : void Set the default connection name.

Защищенные методы

Метод Описание
getAuth ( array $config ) : array Format the appropriate authentication array payload.
getConfig ( string $name ) : array Get the configuration for a remote server.
makeConnection ( string $name, array $config ) : Collective\Remote\Connection Make a new connection instance.
setOutput ( Collective\Remote\Connection $connection ) : void Set the output implementation on the connection.

Описание методов

__call() публичный Метод

Dynamically pass methods to the default connection.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
Результат mixed

__construct() публичный Метод

Create a new remote manager instance.
public __construct ( Illuminate\Contracts\Container\Container $app )
$app Illuminate\Contracts\Container\Container

connect() публичный Метод

Make a new connection instance based on passed params.
public connect ( array $config ) : Collective\Remote\Connection
$config array
Результат Collective\Remote\Connection

connection() публичный Метод

Get a remote connection instance.
public connection ( string | array $name = null ) : Collective\Remote\ConnectionInterface
$name string | array
Результат Collective\Remote\ConnectionInterface

getAuth() защищенный Метод

Format the appropriate authentication array payload.
protected getAuth ( array $config ) : array
$config array
Результат array

getConfig() защищенный Метод

Get the configuration for a remote server.
protected getConfig ( string $name ) : array
$name string
Результат array

getDefaultConnection() публичный Метод

Get the default connection name.
public getDefaultConnection ( ) : string
Результат string

group() публичный Метод

Get a connection group instance by name.
public group ( string $name ) : Collective\Remote\ConnectionInterface
$name string
Результат Collective\Remote\ConnectionInterface

into() публичный Метод

Get a remote connection instance.
public into ( string | array | mixed $name ) : Collective\Remote\ConnectionInterface
$name string | array | mixed
Результат Collective\Remote\ConnectionInterface

makeConnection() защищенный Метод

Make a new connection instance.
protected makeConnection ( string $name, array $config ) : Collective\Remote\Connection
$name string
$config array
Результат Collective\Remote\Connection

multiple() публичный Метод

Resolve a multiple connection instance.
public multiple ( array $names ) : Collective\Remote\MultiConnection
$names array
Результат Collective\Remote\MultiConnection

resolve() публичный Метод

Resolve a remote connection instance.
public resolve ( string $name ) : Collective\Remote\Connection
$name string
Результат Collective\Remote\Connection

setDefaultConnection() публичный Метод

Set the default connection name.
public setDefaultConnection ( string $name ) : void
$name string
Результат void

setOutput() защищенный Метод

Set the output implementation on the connection.
protected setOutput ( Collective\Remote\Connection $connection ) : void
$connection Collective\Remote\Connection
Результат void

Описание свойств

$app защищенное свойство

The application instance.
protected Container,Illuminate\Contracts\Container $app
Результат Illuminate\Contracts\Container\Container