Giter Club home page Giter Club logo

Comments (5)

videlalvaro avatar videlalvaro commented on July 19, 2024

Yes, the idea behind this library is to use messaging patterns, that is… to declare exchange and queues in certain ways for what it wants to provide to the developer.

If you want to customize exchange or queue declarations then you can extend the classes whenever that possible and add your own consumers/producers. If you think what you are doing is generic enough merits a new class into the library then don't hesitate to fork the project and add your own and the issue a pull request with the respective explanation on why that is needed.

Of course you can always use the underlying php-amqp library to do whatever you want with AMQP… the bundle doesn't stop you to do that but at the moment the idea behind is to provide a set of ready to use classes for developers.

I hope this clears up the concern regarding the design decision I took. Let me know if I can go and close this ticket.

from rabbitmqbundle.

eng1neer avatar eng1neer commented on July 19, 2024

Changing it to
$this->ch->exchange_declare($this->exchangeOptions['name'], $this->exchangeOptions['type'], $this->exchangeOption s['passive'], $this->exchangeOptions['durable'], $this->exchangeOptions['auto_delete']);
would solve the problem still allowing to use defaults in case not all options were supplied through the configuration. I really appreciate your work, the bundle saved a lot of my time and it would be great if you applied this fix.

from rabbitmqbundle.

videlalvaro avatar videlalvaro commented on July 19, 2024

Could you please fork the project and add that? ATM I can't dedicate time to this project but I've plan to do it as soon as I finish writing the book.

from rabbitmqbundle.

eng1neer avatar eng1neer commented on July 19, 2024

Ok, thank you.

from rabbitmqbundle.

videlalvaro avatar videlalvaro commented on July 19, 2024

Fixed see: https://github.com/videlalvaro/RabbitMqBundle/blob/master/RabbitMq/Producer.php#L24

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.