Change first __construct parameter type to RegistryInterface instead of Registry to avoid BC break in Doctrine namespace