Fix segment implementation

This commit is contained in:
Joseph Cohen
2015-03-21 02:16:45 -06:00
parent c1c3eb65d9
commit d4fa4e59a0
4 changed files with 23 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class LoadConfigServiceProvider extends ServiceProvider
// Set the Segment.com settings.
$segmentRepository = $this->app->make('CachetHQ\Cachet\Segment\RepositoryInterface');
try {
$this->app->config->set('cachethq/segment::write_key', $segmentRepository->fetch());
$this->app->config->set('segment.write_key', $segmentRepository->fetch());
} catch (\GuzzleHttp\Exception\ConnectException $e) {
// We may not have any connection. Let's not cry about it.
}