
from vumi.middleware.base import (
    TransportMiddleware, ApplicationMiddleware, MiddlewareStack,
    create_middlewares_from_config, setup_middlewares_from_config)

__all__ = [
    'TransportMiddleware', 'ApplicationMiddleware', 'MiddlewareStack',
    'create_middlewares_from_config', 'setup_middlewares_from_config']


from vumi.middleware.base import (
    BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
    MiddlewareStack, create_middlewares_from_config,
    setup_middlewares_from_config)

__all__ = [
    'BaseMiddleware', 'TransportMiddleware', 'ApplicationMiddleware',
    'MiddlewareStack', 'create_middlewares_from_config',
    'setup_middlewares_from_config']

Add BaseMiddleware to vumi.middleware API for 3rd-party middleware that wants to support both transports and applications.
Add BaseMiddleware to vumi.middleware API for 3rd-party middleware that wants to support both transports and applications.

  
  from vumi.middleware.base import (
-     TransportMiddleware, ApplicationMiddleware, MiddlewareStack,
-     create_middlewares_from_config, setup_middlewares_from_config)
+     BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
+     MiddlewareStack, create_middlewares_from_config,
+     setup_middlewares_from_config)
  
  __all__ = [
-     'TransportMiddleware', 'ApplicationMiddleware', 'MiddlewareStack',
-     'create_middlewares_from_config', 'setup_middlewares_from_config']
+     'BaseMiddleware', 'TransportMiddleware', 'ApplicationMiddleware',
+     'MiddlewareStack', 'create_middlewares_from_config',
+     'setup_middlewares_from_config']
  
Add BaseMiddleware to vumi.middleware API for 3rd-party middleware that wants to support both transports and applications.
## Code Before:

from vumi.middleware.base import (
    TransportMiddleware, ApplicationMiddleware, MiddlewareStack,
    create_middlewares_from_config, setup_middlewares_from_config)

__all__ = [
    'TransportMiddleware', 'ApplicationMiddleware', 'MiddlewareStack',
    'create_middlewares_from_config', 'setup_middlewares_from_config']

## Instruction:
Add BaseMiddleware to vumi.middleware API for 3rd-party middleware that wants to support both transports and applications.
## Code After:

from vumi.middleware.base import (
    BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
    MiddlewareStack, create_middlewares_from_config,
    setup_middlewares_from_config)

__all__ = [
    'BaseMiddleware', 'TransportMiddleware', 'ApplicationMiddleware',
    'MiddlewareStack', 'create_middlewares_from_config',
    'setup_middlewares_from_config']
