Skip to content

Commit

Permalink
Merge pull request #7 from princeton255/feature/fix-to-issue-6
Browse files Browse the repository at this point in the history
Fixes issue #6
  • Loading branch information
denisdulici authored Apr 19, 2018
2 parents da4fd8f + bb1bca4 commit 23276f2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Middleware/AutoSaveSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@

namespace Akaunting\Setting\Middleware;

use Akaunting\Setting\Contracts\Driver;
use Closure;

class AutoSaveSetting
{
/**
* Create a new save settings middleware
*
* @param Driver $settings
*
*/
public function __construct(Driver $setting)
public function __construct()
{
$this->setting = $setting;
$this->setting = app('setting');
}

/**
Expand Down

0 comments on commit 23276f2

Please sign in to comment.