composer require ricardoapaes/sentry-cron-command
When creating the Command in symfony/console, implement the RicardoPaes\Sentry\Cron\Command interface.
In your Application, add the events from the RicardoPaes\Sentry\Cron\ApplicationDispatch trait.
You can find a working example used in the tests in the "tests/Cron" folder.