We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07f895e commit 7bf481aCopy full SHA for 7bf481a
user_guide_src/source/general/context.rst
@@ -27,7 +27,7 @@ The Context class is particularly useful for:
27
Accessing Context Class
28
***********************
29
30
-You can access the Context service anywhere in your application using the ``service()`` function:
+You can access the Context service anywhere in your application using the ``service()`` function or ``context()`` helper:
31
32
.. literalinclude:: context/001.php
33
user_guide_src/source/general/context/001.php
@@ -1,3 +1,6 @@
1
<?php
2
3
$context = service('context');
4
+
5
+// Or
6
+$context = context();
0 commit comments