Source of file maks-amqp-agent-config.php

Size: 1,925 Bytes - Last Modified: 2021-01-11T04:52:59+00:00

C:/Users/MAKS/Code/_PROJECTS/amqp-agent/src/Config/maks-amqp-agent-config.php

1234567891011
Covered by 23 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
  • MAKS\AmqpAgent\Tests\ClientTest::testInstantiatingAClientWithAPathToConfigFileAndGetingConfigInstanceBack
  • MAKS\AmqpAgent\Tests\ClientTest::testGetPublisherInstance
  • MAKS\AmqpAgent\Tests\ClientTest::testGetConsumerInstance
  • MAKS\AmqpAgent\Tests\ClientTest::testGetServerEndpointInstance
  • MAKS\AmqpAgent\Tests\ClientTest::testGetClientEndpointInstance
  • MAKS\AmqpAgent\Tests\ClientTest::testGetSerializerInstance
  • MAKS\AmqpAgent\Tests\ClientTest::testGetLoggerInstance
  • MAKS\AmqpAgent\Tests\ClientTest::testGetInstanceByName
  • MAKS\AmqpAgent\Tests\ClientTest::testGetInstanceRaisesExceptionIfMemberCouldNotBeFetched
  • MAKS\AmqpAgent\Tests\ClientTest::testGettableReturnsAnArrayWithExpectedValues
  • MAKS\AmqpAgent\Tests\ConfigTest::testConfigFileNotFoundExceptionIsRaisedViaConstructor
  • MAKS\AmqpAgent\Tests\ConfigTest::testConfigFileNotFoundExceptionIsRaisedViaSetConfigPath
  • MAKS\AmqpAgent\Tests\ConfigTest::testManipulatingConfigArrayViaPublicPropertyAccessAndAssignmentNotation
  • MAKS\AmqpAgent\Tests\ConfigTest::testGetConfigReturnsAnArrayAndHasAnExpectedToBeFoundKey
  • MAKS\AmqpAgent\Tests\ConfigTest::testSetConfigResetsTheConfigAndReturnsTheNewArray
  • MAKS\AmqpAgent\Tests\ConfigTest::testGetConfigPath
  • MAKS\AmqpAgent\Tests\ConfigTest::testSetConfigPathSetsANewPathAndRebuildsTheConfigObject
  • MAKS\AmqpAgent\Tests\ConfigTest::testHasMethodReturnsAnExpectedValue
  • MAKS\AmqpAgent\Tests\ConfigTest::testGetMethodReturnsAnExpectedValues
  • MAKS\AmqpAgent\Tests\ConfigTest::testSetMethodSetsValuesAndGetMethodReturnsThem
  • MAKS\AmqpAgent\Tests\ConfigTest::testGetDefaultConfigReturnsDefaultConfig
  • MAKS\AmqpAgent\Tests\ConfigTest::testCastingConfigObjectToString
1213
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
14
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
15161718
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
19
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
20
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
212223
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
24
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
25
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
26
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
272829
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
30
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
31
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
32333435
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
36
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
37
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
38
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
39
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
40
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
41424344
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
45
Covered by 1 test(s):
  • MAKS\AmqpAgent\Tests\ClientTest::testAmqpAgentExceptionViaConstructorIsRaisedWhenUnSupportedArgumentIsProvided
4647
<?php

namespace MAKS\AmqpAgent\Config;

use MAKS\AmqpAgent\Config\AmqpAgentParameters;

return [
    // Global
    // Start of static/constant class properties. specific to AMQP Agent.
    // Only for reference, modifying them won't change anything.
    'prefix' => AmqpAgentParameters::PREFIX, // default
    // If you want to modify command* use ClassName::$variableName.
    'commandPrefix' => AmqpAgentParameters::COMMAND_PREFIX,
    'commandSyntax' => AmqpAgentParameters::COMMAND_SYNTAX,
    // End of static/constant class properties. specific to AMQP Agent.

    // AbstractWorker
    'connectionOptions' => AmqpAgentParameters::CONNECTION_OPTIONS,
    'channelOptions'    => AmqpAgentParameters::CHANNEL_OPTIONS,
    'queueOptions'      => AmqpAgentParameters::QUEUE_OPTIONS,

    // Publisher
    'exchangeOptions' => AmqpAgentParameters::EXCHANGE_OPTIONS,
    'bindOptions'     => AmqpAgentParameters::BIND_OPTIONS,
    'messageOptions'  => AmqpAgentParameters::MESSAGE_OPTIONS,
    'publishOptions'  => AmqpAgentParameters::PUBLISH_OPTIONS,

    // Consumer
    'qosOptions'     => AmqpAgentParameters::QOS_OPTIONS,
    'waitOptions'    => AmqpAgentParameters::WAIT_OPTIONS,
    'consumeOptions' => AmqpAgentParameters::CONSUME_OPTIONS,

    // Start of constant class properties.
    // Only for reference, modifying them won't change anything
    'ackOptions'     => AmqpAgentParameters::ACK_OPTIONS,
    'nackOptions'    => AmqpAgentParameters::NACK_OPTIONS,
    'getOptions'     => AmqpAgentParameters::GET_OPTIONS,
    'cancelOptions'  => AmqpAgentParameters::CANCEL_OPTIONS,
    'recoverOptions' => AmqpAgentParameters::RECOVER_OPTIONS,
    'rejectOptions'  => AmqpAgentParameters::REJECT_OPTIONS,
    // End of constant class properties.

    // RPC Endpoints
    'rpcConnectionOptions' => AmqpAgentParameters::RPC_CONNECTION_OPTIONS,
    'rpcQueueName'         => AmqpAgentParameters::RPC_QUEUE_NAME,
];