Skip to content

Instantly share code, notes, and snippets.

@raykolbe
Created February 19, 2013 20:55
Show Gist options
  • Save raykolbe/4989813 to your computer and use it in GitHub Desktop.
Save raykolbe/4989813 to your computer and use it in GitHub Desktop.
Blamo! Module
<?php
use Zend\ModuleManager\Feature\ServiceProviderInterface;
class Module implements ServiceProviderInterface
{
public function getServiceConfig()
{
return array(
'blamo.service' => function($sm) {
return $this();
}
);
}
public function __invoke()
{
return 'Blamo!';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment