Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.21 KB

BUSMESSAGE.MD

File metadata and controls

50 lines (36 loc) · 1.21 KB

Bus Message 🚀

php bin/console make:bus-message

Started 📖

After you run the command, fill all the fields and you will get the following:

beginning

Add some properties to your bus message:

string bool datetime

After you finish, you will get the following:
end

You can find your bus message here:

src/Application/Query/GetSomething/ 

And you will have your properties !

prop

Your services.yaml is updated to ! (you can change it if you want)

    App\Application\Query\Folder\GetSomething\GetSomethingHandler:
        tags: [ { name: messenger.message_handler, bus: query.bus } ]
        autoconfigure: false

Handler default configuration:

By default, yaml in services.yaml is not updated, you have to add -y=true to the command.
Without this, you will have this type of configuration:

#[AsMessageHandler(bus: 'BUSTYPE.bus')]    

For test class, you have to check in your composer and config yaml to create it where you want By default, it's in the test folder

    tests/FunctionalTests/