PHP code example of setono / doctrine-orm-batcher-bundle

1. Go to this page and download the library: Download setono/doctrine-orm-batcher-bundle 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/ */

    

setono / doctrine-orm-batcher-bundle example snippets



$bundles = [
    // ...
    
    Setono\DoctrineORMBatcherBundle\SetonoDoctrineORMBatcherBundle::class => ['all' => true],
    
    // ...
];



use Setono\DoctrineORMBatcher\Factory\BatcherFactoryInterface;

final class YourService
{
    private $factory;
    
    public function __construct(BatcherFactoryInterface $factory)
    {
        $this->factory = $factory;
    }
}