PHP Class Collective\Remote\RemoteManager

Afficher le fichier Open project: laravelcollective/remote Class Usage Examples

Protected Properties

Свойство Type Description
$app Illuminate\Contracts\Container\Container The application instance.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__call() public méthode

Dynamically pass methods to the default connection.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
Résultat mixed

__construct() public méthode

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

connect() public méthode

Make a new connection instance based on passed params.
public connect ( array $config ) : Collective\Remote\Connection
$config array
Résultat Collective\Remote\Connection

connection() public méthode

Get a remote connection instance.
public connection ( string | array $name = null ) : Collective\Remote\ConnectionInterface
$name string | array
Résultat Collective\Remote\ConnectionInterface

getAuth() protected méthode

Format the appropriate authentication array payload.
protected getAuth ( array $config ) : array
$config array
Résultat array

getConfig() protected méthode

Get the configuration for a remote server.
protected getConfig ( string $name ) : array
$name string
Résultat array

getDefaultConnection() public méthode

Get the default connection name.
public getDefaultConnection ( ) : string
Résultat string

group() public méthode

Get a connection group instance by name.
public group ( string $name ) : Collective\Remote\ConnectionInterface
$name string
Résultat Collective\Remote\ConnectionInterface

into() public méthode

Get a remote connection instance.
public into ( string | array | mixed $name ) : Collective\Remote\ConnectionInterface
$name string | array | mixed
Résultat Collective\Remote\ConnectionInterface

makeConnection() protected méthode

Make a new connection instance.
protected makeConnection ( string $name, array $config ) : Collective\Remote\Connection
$name string
$config array
Résultat Collective\Remote\Connection

multiple() public méthode

Resolve a multiple connection instance.
public multiple ( array $names ) : Collective\Remote\MultiConnection
$names array
Résultat Collective\Remote\MultiConnection

resolve() public méthode

Resolve a remote connection instance.
public resolve ( string $name ) : Collective\Remote\Connection
$name string
Résultat Collective\Remote\Connection

setDefaultConnection() public méthode

Set the default connection name.
public setDefaultConnection ( string $name ) : void
$name string
Résultat void

setOutput() protected méthode

Set the output implementation on the connection.
protected setOutput ( Collective\Remote\Connection $connection ) : void
$connection Collective\Remote\Connection
Résultat void

Property Details

$app protected_oe property

The application instance.
protected Container,Illuminate\Contracts\Container $app
Résultat Illuminate\Contracts\Container\Container