Add register() method to Service Provider.