Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31edf49

Browse filesBrowse files
committed
Fix code samples
1 parent 1009ca2 commit 31edf49
Copy full SHA for 31edf49

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎controller/value_resolver.rst

Copy file name to clipboardExpand all lines: controller/value_resolver.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ can be resolved by leveraging the
234234
namespace App\Controller;
235235

236236
use Symfony\Component\HttpFoundation\Response;
237+
use Symfony\Component\HttpFoundation\Session\SessionInterface;
237238
use Symfony\Component\HttpKernel\Attribute\ValueResolver;
238239
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\SessionValueResolver;
239240
use Symfony\Component\Routing\Annotation\Route;
240-
use Symfony\Component\HttpFoundation\Session\SessionInterface;
241241

242242
class SessionController
243243
{
@@ -274,9 +274,9 @@ By passing it to ``true``, you can disable the targeted resolver::
274274

275275
use App\ArgumentResolver\EagerValueResolver;
276276
use Symfony\Component\HttpFoundation\Response;
277+
use Symfony\Component\HttpFoundation\Session\SessionInterface;
277278
use Symfony\Component\HttpKernel\Attribute\ValueResolver;
278279
use Symfony\Component\Routing\Annotation\Route;
279-
use Symfony\Component\HttpFoundation\Session\SessionInterface;
280280

281281
class SessionController
282282
{
@@ -414,7 +414,7 @@ but you can set it yourself to change its ``priority`` or ``name`` attributes.
414414
<!-- ... -->
415415
416416
<service id="App\ValueResolver\BookingIdValueResolver">
417-
<tag name="booking_id" priority="150"/>controller.argument_value_resolver</tag>
417+
<tag name="booking_id" priority="150">controller.argument_value_resolver</tag>
418418
</service>
419419
</services>
420420

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.