Registration of doctrine and modules extensions