Beanstalkd -> Pheanstalk
This commit is contained in:
@ -16,4 +16,15 @@ return [
|
||||
}
|
||||
return new Predis\Client($options);
|
||||
},
|
||||
Pheanstalk\Pheanstalk::class => function(ContainerInterface $container) {
|
||||
return Pheanstalk\Pheanstalk::create(
|
||||
$container->get('BEANSTALKD_HOST'),
|
||||
$container->has('BEANSTALKD_PORT') ? $container->get('BEANSTALKD_PORT') : 11300
|
||||
);
|
||||
},
|
||||
Incoviba\Service\MQTT\MQTTInterface::class => function(ContainerInterface $container) {
|
||||
$service = new Incoviba\Service\MQTT($container->get(Psr\Log\LoggerInterface::class));
|
||||
$service->register('default', $container->get(Incoviba\Service\MQTT\Pheanstalk::class));
|
||||
return $service;
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user