setConnectionResolver() public static method

Set the connection resolver instance.
public static setConnectionResolver ( LMongo\ConnectionResolverInterface $resolver ) : void
$resolver LMongo\ConnectionResolverInterface
return void
Ejemplo n.º 1
0
 /**
  * Bootstrap the application events.
  *
  * @return void
  */
 public function boot()
 {
     Model::setConnectionResolver($this->app['lmongo']);
     Model::setEventDispatcher($this->app['events']);
 }