From 58ca2097b41ce7951cfe9cce060fec8aaaab312f Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 27 Jun 2015 21:22:58 +0200 Subject: [PATCH] Revert "Changed dump() to var_dump()" This reverts commit d03c380917d84b5efaa400ee373ebaac3348909c. --- book/doctrine.rst | 3 ++- book/translation.rst | 6 ++++-- cookbook/bundles/remove.rst | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 10b8dbad5c7..f6b23b0b6f7 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1204,7 +1204,8 @@ to the given ``Category`` object via their ``category_id`` value. $category = $product->getCategory(); // prints "Proxies\AppBundleEntityCategoryProxy" - var_dump(get_class($category)); + dump(get_class($category)); + die(); This proxy object extends the true ``Category`` object, and looks and acts exactly like it. The difference is that, by using a proxy object, diff --git a/book/translation.rst b/book/translation.rst index 0f4c009a310..92abb54cb82 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -12,11 +12,13 @@ wrapping each with a function capable of translating the text (or "message") into the language of the user:: // text will *always* print out in English - var_dump('Hello World'); + dump('Hello World'); + die(); // text can be translated into the end-user's language or // default to English - var_dump($translator->trans('Hello World')); + dump($translator->trans('Hello World')); + die(); .. note:: diff --git a/cookbook/bundles/remove.rst b/cookbook/bundles/remove.rst index 8dc6f5b4a6f..fbf186a388e 100644 --- a/cookbook/bundles/remove.rst +++ b/cookbook/bundles/remove.rst @@ -79,7 +79,8 @@ can remove the ``Acme`` directory as well. :method:`Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface::getPath` method to get the path of the bundle:: - var_dump($this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath()); + dump($this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath()); + die(); 3.1 Remove Bundle Assets ~~~~~~~~~~~~~~~~~~~~~~~~