Skip to content

Add hint how to debug argument resolver order #16616

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 1 commit into from
Mar 21, 2022

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Mar 17, 2022

I guess having a specific command for debugging those would be even better, but this does the job fairly ok:

bin/console debug:container debug.argument_resolver.inner --show-arguments

Information for Service "debug.argument_resolver.inner"
=======================================================

 Responsible for resolving the arguments passed to an action.

 ---------------- ----------------------------------------------------------
  Option           Value
 ---------------- ----------------------------------------------------------
  Service ID       debug.argument_resolver.inner
  Class            Symfony\Component\HttpKernel\Controller\ArgumentResolver
  Tags             -
  Public           no
  Synthetic        no
  Lazy             no
  Shared           yes
  Abstract         no
  Autowired        no
  Autoconfigured   no
  Arguments        Service(argument_metadata_factory)
                   Iterator (10 element(s))
                   - Service(debug.App\ArgumentResolver\PackageResolver)
                   - Service(debug.App\ArgumentResolver\UserResolver)
                   - Service(debug.argument_resolver.request_attribute)
                   - Service(debug.argument_resolver.request)
                   - Service(debug.argument_resolver.session)
                   - Service(debug.security.user_value_resolver)
                   - Service(debug.argument_resolver.service)
                   - Service(debug.argument_resolver.default)
                   - Service(debug.argument_resolver.variadic)
                   - Service(debug.argument_resolver.not_tagged_controller)
 ---------------- ----------------------------------------------------------


 ! [NOTE] The "debug.argument_resolver.inner" service or alias has been removed or inlined when the container was
 !        compiled.

@carsonbot carsonbot added this to the 5.4 milestone Mar 17, 2022
@javiereguiluz
Copy link
Member

Nice addition! Thanks.

@javiereguiluz javiereguiluz merged commit 604d451 into symfony:5.4 Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants