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

5177 change echo and print in examples #5285

Closed
wants to merge 4 commits into from
Closed

5177 change echo and print in examples #5285

wants to merge 4 commits into from

Conversation

snoek09
Copy link

@snoek09 snoek09 commented May 23, 2015

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets #5177

Change echo/print in examples to use dump().

Henry Snoek added 4 commits May 23, 2015 11:09
Conflicts:
	book/doctrine.rst
	components/event_dispatcher/introduction.rst
	components/serializer.rst
Conflicts:
	book/doctrine.rst
	components/event_dispatcher/introduction.rst
	components/serializer.rst
@weaverryan
Copy link
Member

Hey Henry!

I'm 👎 on this, mostly because we can't use dump() anywhere in the components - because you may not have the VarDumper component installed in that project. Most of these changes are in the components.

In the framework, dump() needs to be used with a die(), else it won't show up (it'll show up in the WDT).

@snoek09 can you change the dump()'s in the components to var_dump()? And then add die statements into the framework stuff?

Thanks!

@weaverryan
Copy link
Member

And to be more clear - the book and cookbook can be considered "framework" - and components is component stuff.

@snoek09
Copy link
Author

snoek09 commented Jun 11, 2015

@weaverryan that makes perfect sense. Thanks for clearing that up.

@snoek09
Copy link
Author

snoek09 commented Jun 11, 2015

Created a new PR as I deleted my fork: #5388

@snoek09 snoek09 closed this Jun 11, 2015
wouterj added a commit that referenced this pull request Jun 27, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

[#5388] change echo and print in examples

This is a split of #5388 for the 2.3 branch.

Original description:

 > | Q             | A
 > | ------------- | ---
 > | Doc fix?      | yes
 > | New docs?     | no
 > | Applies to    | all
 > | Fixed tickets | #5177
 >
 > Original PR and discussion in #5285
 >
 > Change echo/print in examples to use:
 >
 > - `var_dump()` in components docs
 > - `dump()` in framework docs

Commits
-------

37db975 5177 use var_dump() in components
9fa1c11 5177 use var_dump() in components
c2acbee 5177 add die() after dump()
78c9b7c 5177 use dump() instead of print in examples
10898c9 5177 use dump() instead of echo in examples
wouterj added a commit that referenced this pull request Jun 27, 2015
This PR was merged into the 2.6 branch.

Discussion
----------

[#5388] change echo and print in examples

A split of #5388 for the changes in the 2.6 branch.

Original description:

 > | Q             | A
 > | ------------- | ---
 > | Doc fix?      | yes
 > | New docs?     | no
 > | Applies to    | all
 > | Fixed tickets | #5177
 >
 > Original PR and discussion in #5285
 >
 > Change echo/print in examples to use:
 >
 > - `var_dump()` in components docs
 > - `dump()` in framework docs

Commits
-------

5c63064 5177 fix leftover dump()
ac4e02e 5177 use var_dump() in components
00a522b 5177 use dump() instead of echo in examples
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.

3 participants