Code Monkey home page Code Monkey logo

bassix / voucher-service Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 227 KB

This is a small demo of a service application written in PHP 7.4 and Symfony 5 using Doctrine and Messenger Component to generate vouchers for orders.

License: MIT License

PHP 86.32% Dockerfile 5.36% Shell 1.27% TSQL 7.05%
php php7 php74 symfony symfony5 doctrine-orm doctrine2 rabittmq mariadb docker docker-compose phpstan doctrine phpunit phpunit-tests symfony-messenger

voucher-service's Issues

Processing order message is throwing an exception

The messenger is throwing an exception during the processing of the given order:

Error thrown while handling message App\Message\OrderMessage.
Sending for retry #2 using 2000 ms delay.
Error: "The EntityManager is closed." 
{"message":{"App\\Message\\OrderMessage":[]},"class":"App\\Message\\OrderMessage","retryCount":2,"delay":2000,"error":"The EntityManager is closed.","exception":"[object] (Symfony\\Component\\Messenger\\Exception\\HandlerFailedException(code: 0): The EntityManager is closed. at /srv/app/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php:80)
[previous exception] [object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /srv/app/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:146)"}

We want to generate vouchers

The current voucher service should be able to generate vouchers for orders with a total amount of 100โ‚ฌ or more.

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.