Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from iseazy/feature/file-consumer
Browse files Browse the repository at this point in the history
Specify segment consumer
  • Loading branch information
GrahamCampbell authored Mar 3, 2018
2 parents c5f4ad8 + 8dea96b commit 69c880a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions config/segment.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,18 @@

'write_key' => '',

/*
|--------------------------------------------------------------------------
| Segment Init Options
|--------------------------------------------------------------------------
|
| This option specifies an array of options to initialize Segment.
|
| See: https://segment.com/docs/sources/server/php/#configuration.
|
| Default: []
|
*/

'init_options' => [],
];
2 changes: 1 addition & 1 deletion src/SegmentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function boot()
$this->setupConfig();

if ($writeKey = $this->app->config->get('segment.write_key')) {
Segment::init($writeKey);
Segment::init($writeKey, (array) $this->app->config->get('segment.init_options'));
}
}

Expand Down

0 comments on commit 69c880a

Please sign in to comment.