Use initializeSystem hook in Contao 3.