Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (DeploymentConfig $config, $connectionName='amqp', ConnectionFactory $connectionFactory=null) | |
__destruct () | |
getValue ($key) | |
getChannel () | |
Data Fields | |
const | QUEUE_CONFIG = 'queue' |
const | AMQP_CONFIG = 'amqp' |
const | HOST = 'host' |
const | PORT = 'port' |
const | USERNAME = 'user' |
const | PASSWORD = 'password' |
const | VIRTUALHOST = 'virtualhost' |
const | SSL = 'ssl' |
const | SSL_OPTIONS = 'ssl_options' |
Reads the Amqp config in the deployed environment configuration
@api
Definition at line 21 of file Config.php.
__construct | ( | DeploymentConfig | $config, |
$connectionName = 'amqp' , |
|||
ConnectionFactory | $connectionFactory = null |
||
) |
Initialize dependencies.
Example environment config: 'queue' => [ 'amqp' => [ 'host' => 'localhost', 'port' => 5672, 'username' => 'guest', 'password' => 'guest', 'virtual_host' => '/', 'ssl' => false, 'ssl_options' => [], ], ],
DeploymentConfig | $config | |
string | $connectionName | |
ConnectionFactory | null | $connectionFactory |
Definition at line 101 of file Config.php.
__destruct | ( | ) |
getChannel | ( | ) |
getValue | ( | $key | ) |
Returns the configuration set for the key.
string | $key |
Definition at line 131 of file Config.php.
const AMQP_CONFIG = 'amqp' |
Amqp config key
Definition at line 31 of file Config.php.
const HOST = 'host' |
Definition at line 33 of file Config.php.
const PASSWORD = 'password' |
Definition at line 36 of file Config.php.
const PORT = 'port' |
Definition at line 34 of file Config.php.
const QUEUE_CONFIG = 'queue' |
Queue config key
Definition at line 26 of file Config.php.
const SSL = 'ssl' |
Definition at line 38 of file Config.php.
const SSL_OPTIONS = 'ssl_options' |
Definition at line 39 of file Config.php.
const USERNAME = 'user' |
Definition at line 35 of file Config.php.
const VIRTUALHOST = 'virtualhost' |
Definition at line 37 of file Config.php.