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

[HttpKernel] Document #[ValueResolver] and #[AsTargetedValueResolver] #17763

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix code samples
  • Loading branch information
MatTheCat committed Jun 4, 2023
commit 31edf49e117350c8167fb151a4906ab130271378
6 changes: 3 additions & 3 deletions 6 controller/value_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ can be resolved by leveraging the
namespace App\Controller;

use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpKernel\Attribute\ValueResolver;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\SessionValueResolver;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Session\SessionInterface;

class SessionController
{
Expand Down Expand Up @@ -274,9 +274,9 @@ By passing it to ``true``, you can disable the targeted resolver::

use App\ArgumentResolver\EagerValueResolver;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpKernel\Attribute\ValueResolver;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Session\SessionInterface;

class SessionController
{
Expand Down Expand Up @@ -414,7 +414,7 @@ but you can set it yourself to change its ``priority`` or ``name`` attributes.
<!-- ... -->

<service id="App\ValueResolver\BookingIdValueResolver">
<tag name="booking_id" priority="150"/>controller.argument_value_resolver</tag>
<tag name="booking_id" priority="150">controller.argument_value_resolver</tag>
</service>
</services>

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.