The constant name was changed from Connector to HostConnector. You should check the function documentation and update it; it's here and in a number of other places.