Use messages class
Update composer to use 5.0