Skip to content

Documentation for dump_die(); #4988

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
7 changes: 7 additions & 0 deletions components/var_dumper/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ current PHP SAPI:
to your ``php.ini`` file;
#. From time to time, run ``composer global update`` to have the latest
bug fixes.

The dump_die() Function
-------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be of the same length as the headline.


When you do not want to execute any other code right after dumping a variable:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should end with two colons to indicate that the next block is a PHP code block.


``dump_die($var);``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be indented by four spaces.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh i think @fabpot rejected this PR head on don't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly, think extra helpers will not be implemented. Otherwise I'll make
another docs PR

Op wo 11 feb. 2015 23:08 schreef Luis Cordova notifications@github.com:

In components/var_dumper/introduction.rst
#4988 (comment):

@@ -72,6 +72,13 @@ current PHP SAPI:
to your php.ini file;
#. From time to time, run composer global update to have the latest
bug fixes.
+
+The dump_die() Function
+-------------------
+
+When you do not want to execute any other code right after dumping a variable:
+
+dump_die($var);

@xabbuh https://github.com/xabbuh i think @fabpot
https://github.com/fabpot rejected this PR head on don't it?


Reply to this email directly or view it on GitHub
https://github.com/symfony/symfony-docs/pull/4988/files#r24538600.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to close this one as long as the code PR is open. We can then close here anyway soon enough.


DebugBundle and Twig Integration
--------------------------------
Expand Down