PHP code example of mcfedr / queue-manager-bundle
1. Go to this page and download the library: Download mcfedr/queue-manager-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/ */
mcfedr / queue-manager-bundle example snippets
public function registerBundles()
{
$bundles = [
...
new Mcfedr\QueueManagerBundle\McfedrQueueManagerBundle(),
$queueManager->put(Worker::class, ...)
$queueManager->put('test_worker', ...)
yaml
mcfedr_queue_manager:
retry_limit: 3
sleep_seconds: 5
report_memory: false
doctrine_reset: true