Skip to content

Commit ae5d423

Browse files
committed
Final Hotfix
1 parent 250e8d4 commit ae5d423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AclRepository.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ public function __construct(array $role, array $config = [])
9494
}
9595

9696
$this->handler = function (ServerRequestInterface $requestInterface, AclRepository $aclRepo) {
97-
$this->
97+
9898
$route = $requestInterface->getAttribute('route');
99+
var_dump($route);
100+
var_dump($requestInterface->getAttributes());
101+
99102
if (!empty($route)) {
100103
foreach ($aclRepo->getRole() as $role) {
101104
if ($aclRepo->isAllowed($role, $route->getPattern())) {
@@ -105,7 +108,6 @@ public function __construct(array $role, array $config = [])
105108
}
106109
return false;
107110
};
108-
$this->handler->bindTo($this);
109111

110112
}
111113

0 commit comments

Comments
 (0)