2014-11-26 23:20:31 +00:00
|
|
|
<?php
|
2014-11-26 13:01:07 +00:00
|
|
|
|
2015-04-19 08:52:39 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Cachet.
|
|
|
|
*
|
|
|
|
* (c) James Brooks <james@cachethq.io>
|
2015-05-19 10:45:38 +01:00
|
|
|
* (c) Joseph Cohen <joseph.cohen@dinkbit.com>
|
|
|
|
* (c) Graham Campbell <graham@mineuk.com>
|
2015-04-19 08:52:39 +01:00
|
|
|
*
|
|
|
|
* 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'
|
|
|
|
);
|
2015-01-21 02:32:18 -06:00
|
|
|
$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
|
|
|
}
|