since symfony/doctrine-bridge 2.3 there is no need for forward compatibility RegisterMappingsPass class