From 0084dbb7a71547b56454dab429c314628867bfbf Mon Sep 17 00:00:00 2001 From: BahmanMD Date: Wed, 17 Nov 2021 09:09:11 +0330 Subject: [PATCH 1/2] Update index.rst --- Resources/doc/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index 85b5eda..af01a69 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -154,6 +154,8 @@ 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:: +.. code-block:: php + // src/DataFixtures/UserFixtures.php // ... class UserFixtures extends Fixture @@ -171,6 +173,8 @@ exact same object via its name:: } } +.. code-block:: php + // src/DataFixtures/GroupFixtures.php // ... class GroupFixtures extends Fixture From a4a03f52016c1c5f55a33636224de295e6387781 Mon Sep 17 00:00:00 2001 From: BahmanMD Date: Thu, 18 Nov 2021 14:37:23 +0330 Subject: [PATCH 2/2] Update index.rst --- Resources/doc/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index af01a69..04ac873 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -152,7 +152,7 @@ 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