Skip to content

Commit 881879d

Browse files
committed
make createTable() public again
1 parent 4d58fa7 commit 881879d

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)