Skip to content

Commit

Permalink
Added laravel agent header impl to AblyFactory class
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jun 2, 2023
1 parent b47900e commit 38255e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/AblyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function make($clientOptions)
protected function createInstance($clientOptions)
{
AblyRest::setAblyAgentHeader('laravel-broadcaster', AblyBroadcaster::LIB_VERSION);
$laravelVersion = Miscellaneous::getNumeric(app()->version());
AblyRest::setAblyAgentHeader('laravel', $laravelVersion);
return new AblyRest($clientOptions);
}
}

0 comments on commit 38255e1

Please sign in to comment.