Download the PHP package comsave/safe-salesforce-saver-bundle without Composer
On this page you can find all versions of the php package comsave/safe-salesforce-saver-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download comsave/safe-salesforce-saver-bundle
More information about comsave/safe-salesforce-saver-bundle
Files in comsave/safe-salesforce-saver-bundle
Package safe-salesforce-saver-bundle
Short Description Allows you to save your objects to Salesforce safely
License MIT
Homepage https://github.com/comsave/safe-salesforce-saver-bundle
Informations about the package safe-salesforce-saver-bundle
SafeSalesforceSaver
About
With this bundle you can stop worrying about your data getting lost when trying to save information to Salesforce. The SafeSalesforceSaver will take the objects you give it and place them in a queue. The items are taken out of the queue one by one to prevent Salesforce from getting overwhelmed if you decide to save hundreds (or thoussands) of objects at once. If an exception does occur during the save process, rabbit will simply retry the save a few moments later while logging the error away so you can debug what went wrong.
Installation
$ composer require comsave/safe-salesforce-saver-bundle
Depending on your Symfony version you either have to register the bundle in app/AppKernel.php
(Symfony 3.4 and lower):
Or (Symfony 4.0 and higher) in your config/bundles.php
:
Usage
To get this bundle to work you will have to start the queues in your rabbit client. To do this you have to add the following configuration to your projects config.yml:
It is important that you do not change the names of the queues as this could lead to issues. The above configuration assumes that you already have the default configuration for rabbitMQ set up. If not, please refer to the readme file of the rabbit bundle on github.
In order to actually save your objects to Salesforce they have to be annotated in the right way. See the mapper bundle on github.
When you have updated your configuration and models you can save them in two different ways. Synchronous or a-synchronous:
All versions of safe-salesforce-saver-bundle with dependencies
ext-ctype Version *
ext-iconv Version *
comsave/salesforce-mapper-bundle Version ^3.5
php-amqplib/rabbitmq-bundle Version ^1.14
symfony/config Version ^3.4|^4.3
symfony/console Version ^3.4|^4.3
symfony/dotenv Version ^3.4|^4.3
symfony/flex Version ^1.3.1
symfony/framework-bundle Version ^3.4|^4.3
symfony/yaml Version ^3.4|^4.3