Follow Installation from Installation menu.
$messagingSystem = EcotoneLiteConfiguration::createWithConfiguration($rootCatalog,$container,ServiceConfiguration::createWithDefaults()->withEnvironment("prod")->withLoadCatalog("src")->withFailFast(false)->withNamespaces(["App"])->withDefaultSerializationMediaType("application/json")->withDefaultErrorChannel("errorChannel")->withConsumerMemoryLimit(512)->withCacheDirectoryPath("/var/www/cache")->withConnectionRetryTemplate(RetryTemplateBuilder::fixedBackOff(100))->withServiceName("banking"),$useCachedVersion);
$rootCatalog - Path to root catalog of the project
$container - PSR compatible container
$useCachedVersion - Should Ecotone use cached version of Ecotone Lite, if available
Tells Ecotone what kind of environment type is currently running
Tells Ecotone, if to automatically load all namespaces defined for given catalog.
Describes if Ecotone should fail fast.
true, then Ecotone will boot all endpoints during each request, so it can inform, if configuration is incorrect immediately, it provides fast feedback for the developer.
false, then Ecotone will not boot up any endpoints at each request, which will increase performance, but will results in slower feedback for the developer.
List of namespace prefixes, that should be loaded aby Ecotone
Describes default serialization type within application. If not configured default serialization will be
application/x-php-serialized,which is serialized PHP class.
Provides default memory limit in megabytes for all asynchronous consumers.
Provides default connection retry strategy for asynchronous consumers in case of connection failure.
initialDelay - delay after first retry in milliseconds
multiplier - how much initialDelay should be multipled with each try
maxAttempts - How many attemps should be done, before closing closing endpoint
If you're running distributed services (microservices) and want to use Ecotone's capabilities for integration, then provide name for the service (application).