'Commits any pending configuration statements, sends a
:class:`pyramid.events.ApplicationCreated` event to all listeners,
adds this configuration\'s registry to
:attr:`pyramid.config.global_registries`, and returns a
:app:`Pyramid` WSGI application representing the committed
configuration state.'

def make_wsgi_app(self):

    self.commit()
    app = Router(self.registry)
    global_registries.add(self.registry)
    self.begin()
    try:
        self.registry.notify(ApplicationCreated(app))
    finally:
        self.end()
    return app
