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
dump() function not loaded if var-dumper and symfony share version #20201
Comments
|
ping @nicolas-grekas |
|
Right, that's how we decided to plug things then, to prevent a useless require of |
|
I remembered having stumbled on this case. IMO, the file * should * be required in I'm sure I mentionned this in a ticket, but I can't find it though :/ |
|
@nicolas-grekas not really worried about the version here, but that fact that The only way i see to replicate this, is to add the Maybe this should be in the docs somewhere. |
Why is that not practical? |
|
Always adding the |
|
agree with @Taluu here. |
|
@Taluu ah, ok, that's what I thought. I think just adding the entry to (I wasn't sure whether you initially meant that symfony adding this entry is no good solution or whether manually doing it yourself in every project's |
|
It is not good in |
|
See symfony/symfony-standard#1025 |
|
If I understood @nicolas-grekas correctly, we can close this as "fixed" by symfony/symfony-standard#1025 (not exactly a fix ... but it's close). Thanks! |
This PR was merged into the 2.7 branch. Discussion ---------- Add VarDumper's dump.php to autoload-dev Pragmatical fix for symfony/symfony#20201 Commits ------- 7fe1143 Add VarDumper's dump.php to autoload-dev
thankyou guys.... you rock.. really saved my day today/ i was dump and dieing in kernel.php and it wont work.. |
|
Still facing the same problem sir |
|
@harveyelsisura Please open a new issue with some instructions on how to reproduce if you think that something needs to be fixed. |
please i'm having the same problem, can you like link me the screenshot on what to do exactly, i'm new to symfony and i've been sruggling for 3 days with it. |
|
Any updates to the docs for this? I am using |
This may be a
composerissue, but I'll start the investigation here.Currently my project uses
symfony/symfony: 2.8.*Scenario 1
Requiring
symfony/var-dumper:ˆ2.8|^3.0means that thereplaceentry insymfony/symfonykicks in. This means for example thatcomposer showdoes not list those packages, justsymfony/symfony.By the documentation, all we need to do to use
dump()is enable the DebugBundle. However doing this loads dump, but not before the container/bundles are processed, meaning that if you try adump()in theAppKernelitself it says "function does not exist".Scenario 2
If you install
symfony/var-dumper:^3.1, a version that is not "replaced" by the symfony/symfony version, it will be loaded in an entire new way. It now shows up incomposer showand it also does one more thing: it adds thedump.phpfile to theautoload_filesloader, which does not happen in scenario 1.Now it seems to me as if the autoload entry should be considered regardless of the
replacesdefinitions, right?The text was updated successfully, but these errors were encountered: