$this->eventManager =
$eventManager;
if (!
isset($options['proxyNamespace'
])) { throw new \
Exception('proxyNamespace has to be set.'
);
} if (!
isset($options['proxyDir'
])) { throw new \
Exception('proxyDir has to be set.'
);
} $this->proxyFactory =
new Enlight_Hook_ProxyFactory( $this,
$options['proxyNamespace'
],
$options['proxyDir'
] );
$loader->
registerNamespace( $options['proxyNamespace'
],
$this->proxyFactory->
getProxyDir() );
}