Skip to content

Commit

Permalink
Only run spritesheet_path and svg_path through base_path
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Jun 9, 2017
1 parent cdf9c50 commit 6209720
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BladeSvgServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public function boot()
public function register()
{
$this->app->singleton(SvgFactory::class, function () {

$config = Collection::make(config('blade-svg', []))->merge([
'spritesheet_path' => config('blade-svg.spritesheet_path') ? base_path(config('blade-svg.spritesheet_path')) : null,
'svg_path' => config('blade-svg.svg_path') ? base_path(config('blade-svg.svg_path')) : null,
'spritesheet_path' => base_path(config('blade-svg.spritesheet_path')),
'svg_path' => base_path(config('blade-svg.svg_path', config('blade-svg.icon_path'))),
])->all();

return new SvgFactory($config);
Expand Down

0 comments on commit 6209720

Please sign in to comment.