Skip to content

Instantly share code, notes, and snippets.

@Mezzle
Created February 25, 2015 16:04
public function getServiceConfig()
{
return array(
'factories' => array(
'Zf2Resque\Service\ResqueWorker' => function ($sm)
{
$QUEUE = getenv('QUEUE');
$queues = explode(',', $QUEUE);
return new \Zf2Resque\Service\ResqueWorker($queues, $sm);
}
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment