From cbc40e6cde6bc435b61e2475d3e0d04c2308c8b8 Mon Sep 17 00:00:00 2001 From: BahmanMD Date: Mon, 22 Nov 2021 01:44:54 +0330 Subject: [PATCH] Add separate code-block for blocks (#360) --- Resources/doc/index.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index 85b5eda..04ac873 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -152,7 +152,9 @@ Sharing Objects between Fixtures When using multiple fixtures files, you can reuse PHP objects across different files thanks to the **object references**. Use the ``addReference()`` method to give a name to any object and then, use the ``getReference()`` method to get the -exact same object via its name:: +exact same object via its name: + +.. code-block:: php // src/DataFixtures/UserFixtures.php // ... @@ -171,6 +173,8 @@ exact same object via its name:: } } +.. code-block:: php + // src/DataFixtures/GroupFixtures.php // ... class GroupFixtures extends Fixture