Skip to content

Conversation

@xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 12, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit c287443 into symfony:7.4 Sep 12, 2025
6 of 12 checks passed
@xabbuh xabbuh deleted the pr-60138 branch September 13, 2025 11:01
nicolas-grekas added a commit that referenced this pull request Sep 15, 2025
This PR was merged into the 7.4 branch.

Discussion
----------

[Lock] fix DynamoDB integration test

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

I accidentally broke the integration test in #61737 when changing the visibility of the `createTable()` method to `private`.

Commits
-------

f3b4822 fix DynamoDB integration test
}

public function createTable(): void
private function createTable(): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't createTable stay public, to make it possible to use it in a setup script.
Some projects will use a low-priviledge account for the runtime usage, that is not able to create a table, but is allowed to access the specific table being used. They will then have a setup script run with different AWS credentials with higher priviledges to create the table. If this method is not public, they cannot rely on it as their implementation, having to duplicate it (hoping it is in sync), or use Reflection to call a private method (not covered by our BC policy).

Having such setup method public is the common case for our stores in various components (see PdoStore for instance)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a valid point, see #61754

nicolas-grekas added a commit that referenced this pull request Sep 15, 2025
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        | #61737 (comment)
| License       | MIT

Commits
-------

881879d make createTable() public again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants