File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/Illuminate/Support/Facades
tests/Integration/Support Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ public static function resolved(Closure $callback)
46
46
$ accessor = static ::getFacadeAccessor ();
47
47
48
48
if (static ::$ app ->resolved ($ accessor ) === true ) {
49
- $ callback (static ::getFacadeRoot ());
49
+ $ callback (static ::getFacadeRoot (), static :: $ app );
50
50
}
51
51
52
- static ::$ app ->afterResolving ($ accessor , function ($ service ) use ($ callback ) {
53
- $ callback ($ service );
52
+ static ::$ app ->afterResolving ($ accessor , function ($ service, $ app ) use ($ callback ) {
53
+ $ callback ($ service, $ app );
54
54
});
55
55
}
56
56
Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminate \Tests \Integration \Support ;
4
4
5
+ use Illuminate \Auth \AuthManager ;
6
+ use Illuminate \Foundation \Application ;
5
7
use Illuminate \Support \Collection ;
6
8
use Illuminate \Support \Facades \Auth ;
7
9
use Illuminate \Support \Facades \Facade ;
@@ -19,7 +21,7 @@ protected function tearDown(): void
19
21
20
22
public function testFacadeResolvedCanResolveCallback ()
21
23
{
22
- Auth::resolved (function () {
24
+ Auth::resolved (function (AuthManager $ auth , Application $ app ) {
23
25
$ _SERVER ['__laravel.authResolved ' ] = true ;
24
26
});
25
27
@@ -36,7 +38,7 @@ public function testFacadeResolvedCanResolveCallbackAfterAccessRootHasBeenResolv
36
38
37
39
$ this ->assertFalse (isset ($ _SERVER ['__laravel.authResolved ' ]));
38
40
39
- Auth::resolved (function () {
41
+ Auth::resolved (function (AuthManager $ auth , Application $ app ) {
40
42
$ _SERVER ['__laravel.authResolved ' ] = true ;
41
43
});
42
44
You can’t perform that action at this time.
0 commit comments