Skip to content

Commit decd134

Browse files
author
Maiara
committed
Mudanca no tipo de parametro do authorizator
ao inves de request utilizei uma interface
1 parent 171d9a0 commit decd134

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Acl/Auth/Authorizator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Zend\Mvc\Acl\Exceptions\AuthException;
99
use Zend\ServiceManager\ServiceLocatorInterface;
1010
use Zend\ServiceManager\ServiceManager;
11+
use Zend\Stdlib\RequestInterface;
1112

1213
/**
1314
* Authorizator
@@ -43,11 +44,11 @@ public function __construct(array $config, ServiceLocatorInterface $serviceManag
4344
}
4445

4546
/**
46-
* @param Request $request
47+
* @param RequestInterface $request
4748
* @return bool
4849
* @throws AuthException
4950
*/
50-
public function authorize(Request $request): bool
51+
public function authorize(RequestInterface $request): bool
5152
{
5253
if (in_array($request->getUri()->getPath(), $this->whitelist)) {
5354
return true;

0 commit comments

Comments
 (0)