diff --git a/book/doctrine.rst b/book/doctrine.rst index 8b5a1d55567..63c15079822 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1204,8 +1204,7 @@ to the given ``Category`` object via their ``category_id`` value. $category = $product->getCategory(); // prints "Proxies\AppBundleEntityCategoryProxy" - dump(get_class($category)); - die(); + var_dump(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, diff --git a/book/translation.rst b/book/translation.rst index 3d2f31b7993..e44c702bb9f 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -12,13 +12,11 @@ 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 - dump('Hello World'); - die(); + var_dump('Hello World'); // text can be translated into the end-user's language or // default to English - dump($translator->trans('Hello World')); - die(); + var_dump($translator->trans('Hello World')); .. note:: diff --git a/cookbook/bundles/remove.rst b/cookbook/bundles/remove.rst index fbf186a388e..8dc6f5b4a6f 100644 --- a/cookbook/bundles/remove.rst +++ b/cookbook/bundles/remove.rst @@ -79,8 +79,7 @@ can remove the ``Acme`` directory as well. :method:`Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface::getPath` method to get the path of the bundle:: - dump($this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath()); - die(); + var_dump($this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath()); 3.1 Remove Bundle Assets ~~~~~~~~~~~~~~~~~~~~~~~~