Cachet/app/Providers/RepositoryServiceProvider.php

49 lines
1.3 KiB
PHP
Raw Normal View History

<?php
2014-11-26 13:01:07 +00:00
/*
* This file is part of Cachet.
*
* (c) James Brooks <james@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-01-01 14:30:54 +00:00
namespace CachetHQ\Cachet\Providers;
2014-11-26 13:01:07 +00:00
2014-11-27 17:07:27 +00:00
use Illuminate\Support\ServiceProvider;
2014-11-26 13:01:07 +00:00
2014-12-20 21:20:17 +00:00
class RepositoryServiceProvider extends ServiceProvider
{
2015-01-01 17:47:37 +00:00
/**
* Boot the service provider.
*/
public function boot()
{
//
}
/**
* Register the service provider.
*/
2014-12-20 21:20:17 +00:00
public function register()
{
$this->app->bind(
'CachetHQ\Cachet\Repositories\Component\ComponentRepository',
'CachetHQ\Cachet\Repositories\Component\EloquentComponentRepository'
);
$this->app->bind(
'CachetHQ\Cachet\Repositories\Incident\IncidentRepository',
'CachetHQ\Cachet\Repositories\Incident\EloquentIncidentRepository'
);
$this->app->bind(
'CachetHQ\Cachet\Repositories\Metric\MetricRepository',
'CachetHQ\Cachet\Repositories\Metric\EloquentMetricRepository'
);
$this->app->bind(
'CachetHQ\Cachet\Repositories\MetricPoint\MetricPointRepository',
'CachetHQ\Cachet\Repositories\MetricPoint\EloquentMetricPointRepository'
);
2014-12-20 21:20:17 +00:00
}
2014-11-27 17:07:27 +00:00
}