Skip to content

Commit

Permalink
Removed the unneeded IoC call to retrieve the storage driver on the g…
Browse files Browse the repository at this point in the history
…etContent method
  • Loading branch information
Inaki Anduaga committed Jan 29, 2015
1 parent 0c0f892 commit e0a801d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/ModelWithExternalStorageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function getContent()
if(!$this->hasInMemoryContent() && empty($this->getPath())) {
return null;
} else {
return !empty($this->content) ? $this->content : app(StorageDriver::class)->fetch($this->getPath());
return !empty($this->content) ? $this->content : $this->getStorageDriverInstance()->fetch($this->getPath());
}
}

Expand Down

0 comments on commit e0a801d

Please sign in to comment.