| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SentryContext |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The authentication factory instance. |
||
| 18 | * |
||
| 19 | * @var \Illuminate\Contracts\Auth\Factory |
||
| 20 | */ |
||
| 21 | protected $auth; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new middleware instance. |
||
| 25 | * |
||
| 26 | * @param \Illuminate\Contracts\Auth\Factory $auth |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function __construct(Factory $auth) |
||
| 31 | { |
||
| 32 | $this->auth = $auth; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Handle an incoming request. |
||
| 37 | * |
||
| 38 | * @param \Illuminate\Http\Request $request |
||
| 39 | * @param \Closure $next |
||
| 40 | * |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function handle($request, Closure $next) |
||
| 54 | } |
||
| 55 | |||
| 56 | protected function resolveUserContext($guard, Authenticatable $user): array |
||
| 61 | ]; |
||
| 62 | } |
||
| 64 |