Skip to content

Instantly share code, notes, and snippets.

@gecatalin
Created August 19, 2013 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gecatalin/6267087 to your computer and use it in GitHub Desktop.
Save gecatalin/6267087 to your computer and use it in GitHub Desktop.
<?php
namespace Gecatalin\Provider;
use Silex\Application;
use Silex\ServiceProviderInterface;
use RedBean_Facade;
class RedBeanServiceProvider extends RedBean_Facade implements ServiceProviderInterface
{
public function boot(Application $app){
}
public function register(Application $app)
{
$this->setup();
$app['db'] = $this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment