In PiLayoutHeadExtension from PiAppAdminBundle, change constructor