Skip to content

Commit a5498e7

Browse files
committed
minor #2634 [TwigComponent] Add OptionResolver namespace in doc example (ThibaultPelloquin)
This PR was merged into the 2.x branch. Discussion ---------- [TwigComponent] Add OptionResolver namespace in doc example …lver | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | License | MIT Just to make the documentation clearer for developers who may not be familiar with using the OptionsResolver component. Commits ------- 20928be [TwigComponent] Add use Symfony\Component\OptionsResolver\OptionsResolver
2 parents 823b87c + 20928be commit a5498e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ If you need to modify/validate data before it's *mounted* on the
498498
component use a ``PreMount`` hook::
499499

500500
// src/Twig/Components/Alert.php
501+
use Symfony\Component\OptionsResolver\OptionsResolver;
501502
use Symfony\UX\TwigComponent\Attribute\PreMount;
502503
// ...
503504

0 commit comments

Comments
 (0)