Skip to content

Commit

Permalink
fix: fix undefined property container
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckbon3 committed Jan 25, 2020
1 parent b26340b commit 7974e76
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PublisherManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class PublisherManager extends Manager
public function createHttpDriver(): HttpPublisher
{
return new HttpPublisher(
$this->container['config']['bima.drivers.http.endpoint'],
$this->container['config']['bima.project_id'],
$this->container['config']['bima.token'],
$this->container['config']['bima.drivers.http.timeout']
$this->app['config']['bima.drivers.http.endpoint'],
$this->app['config']['bima.project_id'],
$this->app['config']['bima.token'],
$this->app['config']['bima.drivers.http.timeout']
);
}

Expand All @@ -38,10 +38,10 @@ public function createHttpDriver(): HttpPublisher
*/
public function getDefaultDriver(): string
{
if (is_null($this->container['config']['bima.driver'])) {
if (is_null($this->app['config']['bima.driver'])) {
return 'http';
}

return $this->container['config']['bima.driver'];
return $this->app['config']['bima.driver'];
}
}

0 comments on commit 7974e76

Please sign in to comment.