0

I'm looking at the example of the Worker+IronMq.

http://fortrabbit.com/docs/in-depth/workers/scheduler-example

The question is how can I call a specific service in Symfony2 from the worker?

4

1 回答 1

3

stanlemon/bernard-bundle将bernardphp.com 集成到 symfony 中。Bernard 支持不同的后端,例如:

  • Predis / PhpRedis
  • 亚马逊 SQS
  • 铁MQ
  • 原则 DBAL

以下是如何使用您的服务的示例:

<service id="acme.demo.message_handler.api_update" class="Acme\DemoBundle\Updater\ApiUpdateMessageHandler">
    <argument type="service" id="acme.demo.updater.api"/>
    <tag name="bernard.receiver"/>
</service>
于 2014-01-23T08:51:27.880 回答