Skip to content

5177 change echo and print in examples #5285

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 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch '2.6' into 5177-change-echo-and-print-in-examples
Conflicts:
	book/doctrine.rst
	components/event_dispatcher/introduction.rst
	components/serializer.rst
  • Loading branch information
Henry Snoek committed May 23, 2015
commit f234cd33a84ff9d2b03734ece4f952c8fe2d6764
4 changes: 2 additions & 2 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1198,8 +1198,8 @@ to the given ``Category`` object via their ``category_id`` value.

$category = $product->getCategory();

// prints "Proxies\AcmeStoreBundleEntityCategoryProxy"
dump(get_class($category));
// prints "Proxies\AppBundleEntityCategoryProxy"
echo get_class($category);

This proxy object extends the true ``Category`` object, and looks and
acts exactly like it. The difference is that, by using a proxy object,
Expand Down
2 changes: 1 addition & 1 deletion components/event_dispatcher/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ dispatched, are passed as arguments to the listener::
{
public function myEventListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
{
// ... do something with the event name
echo $eventName;
}
}

Expand Down
4 changes: 2 additions & 2 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ having unique identifiers::
});

$serializer = new Serializer(array($normalizer), array($encoder));
dump($serializer->serialize($org, 'json'));
// {"name":"Les-Tilleuls.coop","members":[{"name":"K\u00e9vin", organization: "Les-Tilleuls.coop"]}
echo $serializer->serialize($org, 'json');
// {"name":"Les-Tilleuls.coop","members":[{"name":"K\u00e9vin", organization: "Les-Tilleuls.coop"}]}

JMSSerializer
-------------
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.