Add contao 3 compatibility