Created
June 29, 2012 12:18
-
-
Save awartoft/3017631 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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