File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1204,7 +1204,8 @@ to the given ``Category`` object via their ``category_id`` value.
1204
1204
$category = $product->getCategory();
1205
1205
1206
1206
// prints "Proxies\AppBundleEntityCategoryProxy"
1207
- var_dump(get_class($category));
1207
+ dump(get_class($category));
1208
+ die();
1208
1209
1209
1210
This proxy object extends the true ``Category `` object, and looks and
1210
1211
acts exactly like it. The difference is that, by using a proxy object,
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ wrapping each with a function capable of translating the text (or "message")
12
12
into the language of the user::
13
13
14
14
// text will *always* print out in English
15
- var_dump('Hello World');
15
+ dump('Hello World');
16
+ die();
16
17
17
18
// text can be translated into the end-user's language or
18
19
// default to English
19
- var_dump($translator->trans('Hello World'));
20
+ dump($translator->trans('Hello World'));
21
+ die();
20
22
21
23
.. note ::
22
24
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ can remove the ``Acme`` directory as well.
79
79
:method: `Symfony\\ Component\\ HttpKernel\\ Bundle\\ BundleInterface::getPath ` method
80
80
to get the path of the bundle::
81
81
82
- var_dump($this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath());
82
+ dump($this->container->get('kernel')->getBundle('AcmeDemoBundle')->getPath());
83
+ die();
83
84
84
85
3.1 Remove Bundle Assets
85
86
~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments