Skip to content

Instantly share code, notes, and snippets.

@macnibblet
Created June 29, 2012 12:18
Show Gist options
  • Save macnibblet/3017631 to your computer and use it in GitHub Desktop.
Save macnibblet/3017631 to your computer and use it in GitHub Desktop.
public function onBootstrap($e)
{
$sm = $e->getApplication()
->getServiceManager();
$sm->get('view_manager')
->getHelperManager()
->setFactory('fb', function($sm) {
return new View\Helper\Facebook($sm->get('facebook_service'));
});
var_dump($sm->get('view_manager')
->getHelperManager()
->create('fb'));
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment