@@ -17,12 +17,12 @@ |
||
| 17 | 17 | use WebHemi\Adapter\Http\ResponseInterface; |
| 18 | 18 | use WebHemi\Adapter\Http\ServerRequestInterface; |
| 19 | 19 | use WebHemi\Auth\Result; |
| 20 | +use WebHemi\Data\Coupler\UserGroupToPolicyCoupler; |
|
| 20 | 21 | use WebHemi\Data\Coupler\UserToGroupCoupler; |
| 21 | 22 | use WebHemi\Data\Coupler\UserToPolicyCoupler; |
| 22 | -use WebHemi\Data\Coupler\UserGroupToPolicyCoupler; |
|
| 23 | 23 | use WebHemi\Data\Entity\User\UserEntity; |
| 24 | -use WebHemi\Middleware\MiddlewareInterface; |
|
| 25 | 24 | use WebHemi\Middleware\Action; |
| 25 | +use WebHemi\Middleware\MiddlewareInterface; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Class AclMiddleware. |
@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | ini_set('session.entropy_file', '/dev/urandom'); |
| 49 | 49 | ini_set('session.entropy_length', '16'); |
| 50 | 50 | ini_set('session.hash_function', $configuration['hash_function']); |
| 51 | - ini_set('session.use_only_cookies', (int)$configuration['use_only_cookies']); |
|
| 52 | - ini_set('session.use_cookies', (int)$configuration['use_cookies']); |
|
| 53 | - ini_set('session.use_trans_sid', (int)$configuration['use_trans_sid']); |
|
| 54 | - ini_set('session.cookie_httponly', (int)$configuration['cookie_http_only']); |
|
| 51 | + ini_set('session.use_only_cookies', (int) $configuration['use_only_cookies']); |
|
| 52 | + ini_set('session.use_cookies', (int) $configuration['use_cookies']); |
|
| 53 | + ini_set('session.use_trans_sid', (int) $configuration['use_trans_sid']); |
|
| 54 | + ini_set('session.cookie_httponly', (int) $configuration['cookie_http_only']); |
|
| 55 | 55 | ini_set('session.save_path', $configuration['save_path']); |
| 56 | 56 | } |
| 57 | 57 | // @codeCoverageIgnoreEnd |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | // @codeCoverageIgnoreStart |
| 132 | 132 | if (!defined('PHPUNIT_WEBHEMI_TESTSUITE')) { |
| 133 | - session_name($this->cookiePrefix.'-'.bin2hex($name . $this->sessionNameSalt)); |
|
| 133 | + session_name($this->cookiePrefix.'-'.bin2hex($name.$this->sessionNameSalt)); |
|
| 134 | 134 | session_set_cookie_params($timeOut, $path, $domain, $secure, $httpOnly); |
| 135 | 135 | session_start(); |
| 136 | 136 | } |