Projekt

Obecné

Profil

Stáhnout (667 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
namespace Illuminate\Auth;
4

    
5
use Exception;
6

    
7
class AuthenticationException extends Exception
8
{
9
    /**
10
     * The guard instance.
11
     *
12
     * @var \Illuminate\Contracts\Auth\Guard
13
     */
14
    protected $guard;
15

    
16
    /**
17
     * Create a new authentication exception.
18
     *
19
     * @param \Illuminate\Contracts\Auth\Guard|null  $guard
20
     */
21
    public function __construct($guard = null)
22
    {
23
        $this->guard = $guard;
24

    
25
        parent::__construct('Unauthenticated.');
26
    }
27

    
28
    /**
29
     * Get the guard instance.
30
     *
31
     * @return \Illuminate\Contracts\Auth\Guard|null
32
     */
33
    public function guard()
34
    {
35
        return $this->guard;
36
    }
37
}
(4-4/13)