Skip to content

Commit 1aa135c

Browse files
committed
Add some minor notes
1 parent 6d856b8 commit 1aa135c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ This is done by having ``getSubscribedServices()`` return an array of
292292
];
293293
}
294294

295+
.. note::
296+
297+
The above example requires using ``3.2`` version or newer of ``symfony/service-contracts``.
298+
295299
Defining a Service Locator
296300
--------------------------
297301

@@ -770,8 +774,8 @@ and compose your services with them::
770774
as this will include the trait name, not the class name. Instead, use
771775
``__CLASS__.'::'.__FUNCTION__`` as the service id.
772776

773-
SubscribedService Attributes
774-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
777+
``SubscribedService`` Attributes
778+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
775779

776780
.. versionadded:: 6.2
777781

@@ -829,4 +833,8 @@ Here's an example::
829833
}
830834
}
831835

836+
.. note::
837+
838+
The above example requires using ``3.2`` version or newer of ``symfony/service-contracts``.
839+
832840
.. _`Command pattern`: https://en.wikipedia.org/wiki/Command_pattern

0 commit comments

Comments
 (0)