Skip to content
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

feat(debug): add debug command and profiler for symfony #103

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

joelwurtz
Copy link
Member

This add a debug command that allow to debug a mapper with

$ php bin/console debug:mapper 'AutoMapper\Tests\Bundle\Resources\App\Entity\FooMapTo' array

Here is a example screenshot and what it output

image

This also add a profiler that show which mappers has been used during a request, this only show mapper if there were generated during the request (that's why i think it should always generate mapper on debug by default see ##102 )

Here is some screenshot of the profiler

image

image

@Korbeil
Copy link
Member

Korbeil commented Mar 31, 2024

Is it possible to do it without Symfony bundle ?
Could you add an example ?

@joelwurtz
Copy link
Member Author

Is it possible to do it without Symfony bundle ?

It should be, but this is actually available without anything with the bundle, if not using a bundle there is 2 options, either leave it like this and tell the user to inject the command in a Application if he has symfony/console component

Or provide a binary to this repository with our own application

Don't want to do that in here, should be another PR

Could you add an example ?

Can you be more precise ? does the current screenshot not enough here on what it gives ?

@joelwurtz joelwurtz mentioned this pull request Mar 31, 2024
13 tasks
@joelwurtz joelwurtz merged commit 80336ef into main Apr 2, 2024
12 checks passed
@joelwurtz joelwurtz deleted the feat/debug-mode branch April 2, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants