fittinq/symfony-salesforce

There is no license information available for the latest version (3.0.0) of this package.

3.0.0 2024-10-29 11:36 UTC

This package is auto-updated.

Last update: 2024-10-29 10:36:58 UTC


README

Use symfony salesforce connector to automatically add authorization to salesforce http requests

Install via composer

composer require fittinq\symfony-salesforce

Configure bundle

# config/bundles.php
<?php

return [
    // ...
    Fittinq\Symfony\Salesforce\SymfonySalesforceConnectorBundle::class => ['all' => true]
];

Configure .env

add the following .env.local settings

SALESFORCE_CONNECTED_APP_CONSUMER_KEY=df9g908djfg98ujed98fg
SALESFORCE_CONNECTED_APP_PRIVATE_KEY_PATH=/var/www/encryption/server.key

Inject Salesforce http client to service

# config/services.yaml
services:
    App\SomeClass:
      arguments:
        - '@Fittinq\Symfony\Salesforce\SalesforceHttpClient'