'Call :func:`zope.component.getSiteManager.sethook` with the
argument :data:`pyramid.threadlocal.get_current_registry`, causing
the :term:`Zope Component Architecture` \'global\' APIs such as
:func:`zope.component.getSiteManager`,
:func:`zope.component.getAdapter` and others to use the
:app:`Pyramid` :term:`application registry` rather than the Zope
\'global\' registry.'

def hook_zca(self):

    from zope.component import getSiteManager
    getSiteManager.sethook(get_current_registry)
