@@ -28,7 +28,8 @@ class RevokedRepository implements RevokedRepositoryInterface
2828 /**
2929 * @param ResourceConnection $resourceConnection
3030 */
31- public function __construct (ResourceConnection $ resourceConnection ) {
31+ public function __construct (ResourceConnection $ resourceConnection )
32+ {
3233 $ this ->connection = $ resourceConnection ;
3334 }
3435
@@ -38,7 +39,7 @@ public function __construct(ResourceConnection $resourceConnection) {
3839 public function saveRevoked (Revoked $ revoked ): void
3940 {
4041 $ conn = $ this ->getAdapter ();
41- $ table = $ conn ->getTableName (self ::TABLE );
42+ $ table = $ conn ->getTableName ($ this -> connection -> getTableName ( self ::TABLE ) );
4243
4344 $ conn ->insertOnDuplicate ($ table , $ revoked ->getData (), array_keys ($ revoked ->getData ()));
4445 }
@@ -49,7 +50,7 @@ public function saveRevoked(Revoked $revoked): void
4950 public function findRevoked (int $ userTypeId , int $ userId ): ?Revoked
5051 {
5152 $ conn = $ this ->getAdapter ();
52- $ table = $ conn ->getTableName (self ::TABLE );
53+ $ table = $ conn ->getTableName ($ this -> connection -> getTableName ( self ::TABLE ) );
5354
5455 $ data = $ conn ->fetchRow (
5556 $ conn ->select ()
@@ -64,6 +65,11 @@ public function findRevoked(int $userTypeId, int $userId): ?Revoked
6465 return null ;
6566 }
6667
68+ /**
69+ * Resource connection
70+ *
71+ * @return AdapterInterface
72+ */
6773 private function getAdapter (): AdapterInterface
6874 {
6975 return $ this ->connection ->getConnection (ResourceConnection::DEFAULT_CONNECTION );
0 commit comments