Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Config] AddNodeDefinition::docUrl()#59762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
GromNaN commentedFeb 12, 2025
This can also be used in the Yaml JsonSchema:#59620 |
acbda3f tob9240b9Comparealexandre-daubois commentedFeb 13, 2025
Should we bump the minimum requirement for |
src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
stof commentedFeb 13, 2025
I suggest bumping the min version instead of doing conditional calls. It makes the code simpler |
6d8ef52 tob2502a8Comparestof commentedFeb 13, 2025
You should probably also update the dumpers to add a comment with the documentation URL (when present), so that |
b2502a8 to4323787Comparealexandre-daubois commentedFeb 14, 2025
src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
3a00a22 toc7f73c8Comparec7f73c8 tod6884ccComparesrc/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
d6884cc to168ede3CompareNodeDefinition::documentationUri()NodeDefinition::docUrl()| publicfunctiondocUrl(string$uri, ?string$package =null):static | ||
| { | ||
| if ($package) { | ||
| preg_match('/^(\d+)\.(\d+)\.(\d+)/', InstalledVersions::getVersion($package) ??'',$m); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
No$, because some packages may return a fourth number (in local,phpunit/phpunit returns9.6.99.0 for example on my computer)
src/Symfony/Component/Config/Tests/Definition/Builder/NodeDefinitionTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Config/Tests/Definition/Builder/NodeDefinitionTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
168ede3 to1d3c7b3Compare1d3c7b3 toa27e4aaComparesrc/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
a27e4aa to3c7fce2Compare| "require": { | ||
| "php":">=8.2", | ||
| "ext-xml":"*", | ||
| "composer-runtime-api":">=2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
When installing the smallest possible Symfony app, we currently only require Symfony deps. So, that would be the first non-Symfony dependency that we require.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I had the same thought until I realized the framework bundle already has this dependency:
https://github.com/symfony/symfony/blob/7.3/src/Symfony/Bundle/FrameworkBundle/composer.json
fabpot commentedApr 4, 2025
Thank you@alexandre-daubois. |
2795d95 intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
…xabbuh)This PR was merged into the 7.3 branch.Discussion----------[DebugBundle] require the 7.3+ of the Config component| Q | A| ------------- | ---| Branch? | 7.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues || License | MITrelated to#59762, we could bump the conflict rule instead, but I don't see a use case where using the bundle without the Config component actually makes senseCommits-------28d1a83 require the 7.3+ of the Config component


Adding such information would allow extensions and bundles to provide even more info with a documentation "one click away".
The primary goal is to use this feature in conjunction with#58771, allowing to dump a
@see https://symfony.com/doc/...right next to the configuration array shape.