Skip to content

Commit

Permalink
Update GlideServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jul 13, 2015
1 parent e0c98f0 commit a3a1880
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Spatie/Glide/GlideServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace Spatie\Glide;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Config;

class GlideServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -67,12 +68,12 @@ public function getSignKey($glideConfig)
{
if(! isset($glideConfig['useSecureURLs']))
{
return $this->app['config']->get('app.key');
return Config::get('app.key');
}

if ($glideConfig['useSecureURLs'] === true)
{
return $this->app['config']->get('app.key');
return Config::get('app.key');
}

return null;
Expand Down

0 comments on commit a3a1880

Please sign in to comment.