Skip to content

Commit 87d4aed

Browse files
minor symfony#61754 [Lock] make createTable() public again (xabbuh)
This PR was merged into the 7.4 branch. Discussion ---------- [Lock] make `createTable()` public again | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | symfony#61737 (comment) | License | MIT Commits ------- 881879d make createTable() public again
2 parents 280fd47 + 881879d commit 87d4aed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Lock/Bridge/DynamoDb/Store/DynamoDbStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function putOffExpiration(Key $key, float $ttl): void
246246
$this->checkNotExpired($key);
247247
}
248248

249-
private function createTable(): void
249+
public function createTable(): void
250250
{
251251
$this->client->createTable(new CreateTableInput([
252252
'TableName' => $this->tableName,

src/Symfony/Component/Lock/Bridge/DynamoDb/Tests/Functional/Store/DynamoDbStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function setUpBeforeClass(): void
2727
}
2828

2929
$store = new DynamoDbStore(getenv('LOCK_DYNAMODB_DSN'));
30-
(new \ReflectionMethod(DynamoDbStore::class, 'createTable'))->invoke($store);
30+
$store->createTable();
3131
}
3232

3333
protected function getStore(): PersistingStoreInterface

0 commit comments

Comments
 (0)