Skip to content

Commit

Permalink
Add separate code-block for blocks (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
BahmanMD authored Nov 21, 2021
1 parent 31ba202 commit cbc40e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
// ...
Expand All @@ -171,6 +173,8 @@ exact same object via its name::
}
}
.. code-block:: php
// src/DataFixtures/GroupFixtures.php
// ...
class GroupFixtures extends Fixture
Expand Down

0 comments on commit cbc40e6

Please sign in to comment.