Skip to content

Commit

Permalink
Merge branch '3.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Aug 8, 2019
2 parents 288c7fa + 75544c2 commit e68e88f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/messages`.

## 3.8.2

Released: 2019-08-08

### Changes

* Refactor `Orchestra\Messages\MessageBag`.

## 3.8.1

Released: 2019-08-04
Expand Down
3 changes: 1 addition & 2 deletions src/MessageBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Orchestra\Messages;

use Closure;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\MessageBag as Message;
use Illuminate\Contracts\Session\Session as SessionContract;
use Illuminate\Contracts\Support\MessageBag as MessageContract;
Expand Down Expand Up @@ -64,7 +63,7 @@ public function extend(Closure $callback): MessageContract

$callback($messageBag);

return $this;
return $messageBag;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/MessagesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class MessagesServiceProvider extends MiddlewareServiceProvider
public function register()
{
$this->app->singleton('orchestra.messages', static function ($app) {
return \tap(new MessageBag(), static function ($bag) use ($app) {
$bag->setSessionStore($app->make('session.store'));
return \tap(new MessageBag(), static function ($messageBag) use ($app) {
$messageBag->setSessionStore($app->make('session.store'));
});
});
}
Expand Down

0 comments on commit e68e88f

Please sign in to comment.