fittinq/symfony-salesforce

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

2.0.7 2023-12-05 09:23 UTC

This package is auto-updated.

Last update: 2024-05-05 10:12:20 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'