instances added god may help
This commit is contained in:
17
lib/Service/User/UserPermissionGateway.php
Normal file
17
lib/Service/User/UserPermissionGateway.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\User;
|
||||
|
||||
use MintyPHP\Service\Access\PermissionGateway;
|
||||
|
||||
class UserPermissionGateway
|
||||
{
|
||||
public function __construct(private readonly PermissionGateway $permissionGateway)
|
||||
{
|
||||
}
|
||||
|
||||
public function clearUserCache(int $userId): void
|
||||
{
|
||||
$this->permissionGateway->clearUserCache($userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user