Console and background work
Part 5 of the Symfony course. Console commands, events and subscribers, Messenger messages and handlers, the Mailer, and cache pools.
The cards below open the lessons of the part, and the tree lists them in the reading order of the whole
course. The previous and the next page at the bottom move through that order.
5.1
Console commands
Create console commands with AsCommand and read arguments and options from input.
Open
5.2
Events
Dispatch events and listen with subscribers using priority and stop propagation.
Open
5.3
Messenger
Send messages with Messenger using a message class and a handler with sync transport.
Open
5.4
Mailer
Send mail with Mailer by building an Email object and testing delivery.
Open
5.5
Cache
Cache expensive results with pools callbacks and expiry times.
Open