Giter Club home page Giter Club logo

Comments (6)

videlalvaro avatar videlalvaro commented on July 19, 2024

Hi the message has a reference to the channel.

For example:

$msg->delivery_info['channel']->basic_ack($msg->delivery_info['delivery_tag']);

Take a look at the php-amqplib code. Sadly there's no docs for this yet.

from rabbitmqbundle.

panosru avatar panosru commented on July 19, 2024

Ok, I see, I actually implemented my own message object in order to push into rabbitmq queue but I will hook channel into it :)

Thanks for the answer.

from rabbitmqbundle.

panosru avatar panosru commented on July 19, 2024

Hello Alvaro, I just found some time to work with it, so the issue remains and also if i try to use $msg->delivery_info I get Notice: Trying to get property of non-object if I var_dump($msg); exit(); inside the execute method and then run the consumer in order to test the output I'm getting this: string(73) "a:2:{s:7:"user_id";i:1235;s:10:"image_path";s:20:"/path/to/new/pic.png";}" so it seems that the $msg is coming in plain serialized string format inside the execute method.

from rabbitmqbundle.

videlalvaro avatar videlalvaro commented on July 19, 2024

You are right. I think I have to pass the whole object message to the consumer and not just the $msg->body. I will look to change that and add a BC warning in the README

from rabbitmqbundle.

panosru avatar panosru commented on July 19, 2024

Hello Alvaro, I added some pull requests where in consumer and RPC server I passed the $msg object directly instead of $msg->body as it was before (I didn't thought of checking that before :P Thanks for the tip!)

from rabbitmqbundle.

videlalvaro avatar videlalvaro commented on July 19, 2024

@panosru I think now this can be closed since I merged your PR. Thanks

from rabbitmqbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.