src/Http/Middleware/AuthorizeRoutePermission.php 1 location
|
@@ 56-67 (lines=12) @@
|
53 |
|
* @param MessageBag $messages |
54 |
|
* @param Authorizer $authorizer |
55 |
|
*/ |
56 |
|
public function __construct( |
57 |
|
Guard $auth, |
58 |
|
Route $route, |
59 |
|
Redirector $redirect, |
60 |
|
MessageBag $messages, |
61 |
|
Authorizer $authorizer |
62 |
|
) { |
63 |
|
$this->route = $route; |
64 |
|
$this->redirect = $redirect; |
65 |
|
$this->messages = $messages; |
66 |
|
$this->authorizer = $authorizer; |
67 |
|
} |
68 |
|
|
69 |
|
/** |
70 |
|
* Check the authorization of module access. |
src/Http/Middleware/AuthorizeRouteRoles.php 1 location
|
@@ 57-63 (lines=7) @@
|
54 |
|
* @param Redirector $redirect |
55 |
|
* @param MessageBag $messages |
56 |
|
*/ |
57 |
|
public function __construct(Route $route, Redirector $redirect, MessageBag $messages, Guard $auth) |
58 |
|
{ |
59 |
|
$this->auth = $auth; |
60 |
|
$this->route = $route; |
61 |
|
$this->redirect = $redirect; |
62 |
|
$this->messages = $messages; |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* Check the authorization of module access. |