PHP code example of ylly / salesforcebundle

1. Go to this page and download the library: Download ylly/salesforcebundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ylly / salesforcebundle example snippets


use src\Service\SalesforceQueryService as YllySalesforceQueryService;use Symfony\Component\DependencyInjection\Attribute\AsDecorator;

#[AsDecorator(decorates: YllySalesforceQueryService::class)]
final class SalesforceQueryService
{
    private YllySalesforceQueryService $inner;
}



use Symfony\Component\DependencyInjection\Attribute\MapDecorated;
//...
public function __construct (#[MapDecorated] YllySalesforceQueryService $inner)
{
    $this->inner = $inner
}

namespace App\DTO\SalesforceWebhookUserDTO;

#[MappingAware(target: User::class)]
class SalesforceWebhookUserDTO
{
   #[MappingAware]
   public string $lastname;
   
    #[MappingAware(target: 'mail')]
    public string $email;
}
 php
Ylly\SalesforceBundle\YllySalesforceBundle::class => ['all' => true],