[3.9] Convert custom events to symfony events