#!/usr/bin/env php
<?php

require_once __DIR__ . '/../bootstrap.php';

use Hodor\Command\Arguments as Arguments;
use Hodor\Config\LoaderFacade as Config;
use Hodor\JobQueue\QueueFactory as QueueFactory;

$args = new Arguments();
$config_file = $args->getConfigFile();
$queue_name = $args->getQueueName();

$config = Config::loadFromFile($config_file);
$queue_factory = new QueueFactory($config);
$buffer_worker = $queue_factory->getBufferQueue($queue_name);

$buffer_worker->processBuffer();

#!/usr/bin/env php
<?php

require_once __DIR__ . '/../bootstrap.php';

use Hodor\Command\Arguments as Arguments;
use Hodor\Config\LoaderFacade as Config;
use Hodor\JobQueue\QueueFactory as QueueFactory;

$args = new Arguments();
$config_file = $args->getConfigFile();

$config = Config::loadFromFile($config_file);
$queue_factory = new QueueFactory($config);
$buffer_worker = $queue_factory->getBufferQueue('default');

$buffer_worker->processBuffer();

Revert "feat(queue): add buffer queue name factory"
Revert "feat(queue): add buffer queue name factory"

This reverts commit 7570be26b320e796da1225dc34d8c180f78f58bb.

The commit message and date for this commit was wrong.
