1 | <?php |
||
11 | class JwtMiddleware |
||
12 | { |
||
13 | const AUTH_BEARER = 'Bearer %s'; |
||
14 | |||
15 | /** |
||
16 | * $token. |
||
17 | * |
||
18 | * @var JwtToken |
||
19 | */ |
||
20 | protected $token; |
||
21 | |||
22 | /** |
||
23 | * $JwtManager. |
||
24 | * |
||
25 | * @var JwtManager |
||
26 | */ |
||
27 | protected $JwtManager; |
||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * |
||
32 | * @param JwtManager $jwtManager |
||
33 | */ |
||
34 | public function __construct(JwtManager $jwtManager) |
||
38 | |||
39 | /** |
||
40 | * Called when the middleware is handled by the client. |
||
41 | * |
||
42 | * @param callable $handler |
||
43 | * |
||
44 | * @return Closure |
||
45 | */ |
||
46 | public function __invoke(callable $handler) |
||
62 | } |
||
63 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.