Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (15 sloc) 538 Bytes
<?php
Autoloader::map(array(
'Mongor\\Model' => path('bundle').'mongor/model.php',
'Mongor\\MongoDB' => path('bundle').'mongor/mongodb.php',
'Mongor\\Hydrator' => path('bundle').'mongor/hydrator.php',
'Mongor\\MongoAuth'=> path('bundle').'mongor/mongoauth.php',
'Mongor\\MongoProfiler'=> path('bundle').'mongor/mongoprofiler.php',
));
Auth::extend('mongo', function() {
return new Mongor\MongoAuth(Config::get('auth.model'));
});
if (Config::get('application.profiler'))
{
Mongor\MongoProfiler::attach();
}