Skip to content

Commit a0536eb

Browse files
feature #47445 [FrameworkBundle] Allow secrets vaults to be used directly outside Symfony (AndreasA)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [FrameworkBundle] Allow secrets vaults to be used directly outside Symfony | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | | License | MIT | Doc PR | This PR removes the internal tag from the secrets vaults. This allows developers to use them directly without the need to use Symfony config etc. They still have to install the whole framework bundle but that just means an overhead during download, they are still able to directly instantiate the vault using `new SodiumVault(....)` for instance. Furthermore, by removing internal from the AbstractVault, it is possible to add a custom vault and specify it replacing the `secrets.vault` service for instance. See ticket: symfony/symfony#44151 and previous PR: symfony/symfony#45571 Commits ------- df953f038e [FrameworkBundle] Allow secrets vaults to be used directly outside Symfony
2 parents dde884c + 0c99a5c commit a0536eb

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ CHANGELOG
1717
tagged with `workflow.workflow`, and those with type=state_machine with
1818
`workflow.state_machine`
1919
* Add `rate_limiter` configuration option to `messenger.transport` to allow rate limited transports using the RateLimiter component
20+
* Remove `@internal` tag from secret vaults to allow them to be used directly outside the framework bundle and custom vaults to be added
2021

2122
6.1
2223
---

Secrets/AbstractVault.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
/**
1515
* @author Nicolas Grekas <p@tchwork.com>
16-
*
17-
* @internal
1816
*/
1917
abstract class AbstractVault
2018
{

Secrets/DotenvVault.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
/**
1515
* @author Nicolas Grekas <p@tchwork.com>
16-
*
17-
* @internal
1816
*/
1917
class DotenvVault extends AbstractVault
2018
{

Secrets/SodiumVault.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* @author Tobias Schultze <http://tobion.de>
1919
* @author Jérémy Derussé <jeremy@derusse.com>
2020
* @author Nicolas Grekas <p@tchwork.com>
21-
*
22-
* @internal
2321
*/
2422
class SodiumVault extends AbstractVault implements EnvVarLoaderInterface
2523
{

0 commit comments

Comments
 (0)