Tweaked the metric repo binding

This commit is contained in:
Graham Campbell
2016-05-28 16:19:17 +01:00
parent a2a008b108
commit 3a1042e6ae

View File

@@ -37,7 +37,7 @@ class RepositoryServiceProvider extends ServiceProvider
*/
protected function registerMetricRepository()
{
$this->app->singleton('cachet.metricrepository', function ($app) {
$this->app->singleton(MetricRepository::class, function ($app) {
$dbDriver = $app['config']->get('database.default');
if ($dbDriver == 'mysql') {
@@ -52,7 +52,5 @@ class RepositoryServiceProvider extends ServiceProvider
return new MetricRepository($repository, $dates);
});
$this->app->alias('cachet.metricrepository', MetricRepository::class);
}
}